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 | |
by ambrus (Abbot) on Oct 04, 2011 at 12:34 UTC |