Don't ask to ask, just ask | |
PerlMonks |
Re^2: adding a column of integersby Smylers (Pilgrim) |
on Sep 02, 2004 at 16:10 UTC ( [id://387967]=note: print w/replies, xml ) | Need Help?? |
If you're in the mood for doing sneaky tricks with -n then why not be really sneaky: perl -lne '$;+=$_}{print$'Smylers
In Section
Seekers of Perl Wisdom
|
|