in reply to Re: A spiked version of test.pl
in thread A spiked version of test.pl

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.