Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: perlby Random_Walk (Prior) |
on Sep 03, 2004 at 07:49 UTC ( [id://388219]=note: print w/replies, xml ) | Need Help?? |
A slightly shorter version
perl -pe '$c++ unless /\S/}{$_=$c'
Cheers, Random.
In Section
Seekers of Perl Wisdom
|
|