Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Evaluating code in a regex at runtime: (??{...})

by Athanasius (Monsignor)
on Jan 28, 2013 at 08:44 UTC ( #1015641=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    /(....)...(...)...((??{foo()}))....(...)/
     ^        ^       ^                ^
     1        2       3                4
    
  2. or download this
    use Modern::Perl;
    
    ...
    my @caps = $str =~ /(a)b(c)d((??{'(.)' x 5}))e(f)/;
    
    say join(', ', @caps);
    
  3. or download this
    18:33 >perl 504_SoPW.pl
    a, c, $$$$$, f
    
    18:38 >
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (18)
As of 2014-12-18 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (58 votes), past polls