in reply to Re: perl onliner on multiple files
in thread perl onliner on multiple files
When i run this i get following error mesg:
% perl -nE "/: / and $c += (split/: /)[0]; if( eof(ARGV) ){ say qq[SUM +.$ARGV =$c]; $c=0 }" tmp_* c: Undefined variable.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: perl onliner on multiple files
by BrowserUk (Patriarch) on Feb 08, 2013 at 22:35 UTC | |
Re^3: perl onliner on multiple files
by 7stud (Deacon) on Feb 08, 2013 at 23:54 UTC | |
by abhay180 (Sexton) on Feb 09, 2013 at 10:05 UTC | |
Re^3: perl onliner on multiple files
by Anonymous Monk on Feb 09, 2013 at 09:24 UTC |
In Section
Seekers of Perl Wisdom