in reply to print a determinate line number
sorry if i think too simple, but did you mean you need to print whatever is on the 5th line ... $_ contains it ;)
if( $line_number == 5 ){ print "Line $line_number contains this text:\n", $_, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: print a determinate line number
by Paulux (Acolyte) on Oct 06, 2009 at 12:29 UTC | |
by almut (Canon) on Oct 06, 2009 at 12:42 UTC | |
by arun_kom (Monk) on Oct 06, 2009 at 12:59 UTC | |
by Paulux (Acolyte) on Oct 06, 2009 at 13:53 UTC |