good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re(2): File Handle Basicsby Arien (Pilgrim) |
on Sep 04, 2002 at 00:17 UTC ( [id://194948]=note: print w/replies, xml ) | Need Help?? |
You want -p for the impicit loop and print, instead of -n wich just loops. Also, since I've picked up Golf recently... perl -i -lpe'/^%/?--$.:s/^(?:N\d+\s?)?/N$. /'— Arien
In Section
Seekers of Perl Wisdom
|
|