how can I print the current line of my script?

#!/usr/bin/perl

use Module;

$someVar='something';
print "This is line number $???\n"; <-want to print "This is line number 6" print "This is line number $???\n"; <-want to print "This is line number 7"


Thanks!

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to