Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Best Macro Syntax for Perl?

by pemungkah (Priest)
on Nov 13, 2007 at 00:34 UTC ( [id://650414]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Define base variable detector: any (possibly-nested) angle-bracketed
    + string.
    # Patterns to extract <variables> or >variables< from a string.
    ...
                                   # another angle-bracketed item ...
                                                     # if there are any ..
    +.
                                                       # and a close angle
    +-bracket
    
  2. or download this
    $templaty = qr/
                    \[%                # open delim
    ...
                     %\]               # close delim
               /x;
    @vars = ($string =~ $templaty);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 12:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found