Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
    #! perl
    use Modern::Perl;
    ...
    ('a' x 100) =~ /(?<match>(??{'(.)' x 100}))/;
    
    say $+{match};
    
  2. or download this
    12:28 >perl 504_SoPW.pl
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    +aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    
    12:28 >
    

Log In?
Username:
Password:

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

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

    How do you remember the number of days in each month?











    Results (151 votes), past polls