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

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

by Athanasius (Chancellor)
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?
[Lady_Aleena]: It will leave me with 8 out of 138 modules that print something.
[atcroft]: Sounds like it will make display modifications a little easier when you are done, at least.

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2017-05-29 02:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?