Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

reset of match variables

by morgon (Curate)
on Oct 03, 2011 at 14:29 UTC ( #929350=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($match) = $string =~ /$regex/;
    
  2. or download this
    perl -ne '/$regex/, $SUM += $1; END { print $SUM }' file.txt
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://929350]
Approved by moritz
help
Chatterbox?
[zentara]: Y succeeds X then preceeds Z . There is a deep meaning in that :-)
[zentara]: unicorns have a Z chromosome
shmem lives in a city which has the unicorn in its emblem

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-03-30 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (362 votes). Check out past polls.