Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: A Macro System for Perl?

by abstracts (Hermit)
on May 03, 2002 at 21:52 UTC ( [id://163932]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        use Switch;
    
    ...
            case (\&sub)    { print "arg to subroutine" }
            else            { print "previous case not true" }
        }
    
  2. or download this
        syntax (switch (EXPR) CODE) { # eval the expr first to avoid
                                      # reevaluation at each case
    ...
            SUB(EXPR)
          }
        }
    
  3. or download this
        parser = new Parse::RecDescent (q{
            expression: and_expr '||' expression | and_expr
    ...
            brack_expr: '(' expression ')'       | identifier
            identifier: /[a-z]+/i
            );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://163932]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-18 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found