Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: A Macro System for Perl?

by abstracts (Hermit)
on May 03, 2002 at 21:52 UTC ( #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
Node Status?
node history
Node Type: note [id://163932]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-12-28 10:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (180 votes), past polls