in reply to Re: One to one file output idiom
in thread One to one file output idiom
maybe try $. to catch the first line per file, like
C:\tmp\files>perl -nE"say qq($.--$ARGV) if $.==1; $.=0 if eof " a b c 1--a 1--b 1--c
Unfortunately I need to reset $. at the end of each file, which is kind of hacky! :/
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In Section
Seekers of Perl Wisdom