Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: reset of match variables

by AnomalousMonk (Canon)
on Oct 03, 2011 at 22:25 UTC ( #929424=note: print w/replies, xml ) Need Help??


in reply to Re: reset of match variables
in thread reset of match variables

With warnings and strictures:

>perl -wMstrict -lne "$::SUM += /(\d+)/ && $1; END { print $::SUM } " foo123bar foo xxx111ccc xxx ^Z 234

Replies are listed 'Best First'.
Re^3: reset of match variables
by bart (Canon) on Oct 04, 2011 at 11:31 UTC
    Jeezes, who would want to use strict and a workaround for a one-liner??

      I write 550 character long one-liners (anything above that I convert to a script file), and I do often use strict in them.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929424]
help
Chatterbox?
[Corion]: Congratulations Lady_Aleena ;)
[Lady_Aleena]: Thanks Corion.
[Lady_Aleena]: This is one of my oldest accounts on the web. 8)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2017-04-26 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (469 votes). Check out past polls.