Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: $+ versus $^N

by Enlil (Parson)
on Apr 16, 2003 at 05:48 UTC ( [id://250796]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    $text_match = qr/(\D+)(\d+)(?{ $plus = $+;$N = $^N })(\D+)/;
    $text =~ $text_match;
    print "$plus, $N\n";
    
  2. or download this
    __END__
    123, abc123
    123, 123
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-29 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found