perl -pi.bak -e 's/^/sprintf( "%05d", $.).": "/e' test.pl
Of course, that will make your program unuseable :) If you need to remove them again:
perl -pi.bak -e 's/^(?:\s+)?\d+:\s//' test.pl
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: Re: A spiked version of test.pl
by Ovid
in thread A spiked version of test.pl
by jonasbn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |