Please bottom post...
Manav Mathur wrote:
This??
perl -i.bak -ne 'print "=$.= $_"' /path/to/code_file
Manav
I am no golfer, but you don't need the -i and .bak if you are not editing the file, and I suspect this will make things slower because Perl has to keep track of whether you are editing. You can remove the 'print' if you use -p, and I figure you can remove the assignment in the below, but I am not sure how....
perl -p -e '$_ = "=$.= $_"' test.pl
[snip]
reference: http://www.stonehenge.com/merlyn/UnixReview/col34.html
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>