Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: ${^MATCH} sometimes fails in target of substitution?

by ikegami (Pope)
on Jun 17, 2013 at 08:16 UTC ( #1039290=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -v | grep 'This is'
    This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-li
    +nux-thread-multi
    ...
    
    $ perl -E'$_ = "abcde"; $sub="b.."; s/$sub/==${^MATCH}==/p; say'
    a==bcd==e
    
  2. or download this
    $ perl -v | grep 'This is'
    This is perl 5, version 18, subversion 0 (v5.18.0) built for x86_64-li
    +nux-thread-multi
    ...
    
    $ perl -E'$_ = "abcde"; $sub="b.."; s/$sub/==${^MATCH}==/p; say'
    a==bcd==e
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039290]
help
Chatterbox?
[james28909]: i think im good
[james28909]: i just watched a youtube video
[karlgoethebier]: james28909: Did you look on CPAN?
[james28909]: lol
[karlgoethebier]: james28909: Super Search here ?
[karlgoethebier]: james28909: No kidding
[karlgoethebier]: james28909: Sometimes i dream i'm good. A nightmare.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-05-25 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?