Paulux has asked for the wisdom of the Perl Monks concerning the following question:
Thanx, B/R#something is omitted $line_number= $.; if ( $line_number == 5) { print "The $line_number is: ". #here i have to print the fifth line +of the text file }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print a determinate line number
by jakobi (Pilgrim) on Oct 06, 2009 at 10:31 UTC | |
by almut (Canon) on Oct 06, 2009 at 10:58 UTC | |
by jakobi (Pilgrim) on Oct 06, 2009 at 11:56 UTC | |
|
Re: print a determinate line number
by arun_kom (Monk) on Oct 06, 2009 at 10:57 UTC | |
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 |