sanPerl has asked for the wisdom of the Perl Monks concerning the following question:
Here How can I print Line Number? Is there any simple way?while ($ctfilebuf =~ m/Cell/ig) { print "Word \"Cell\" found at line number ......\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Finding Line numbers in a file
by davidrw (Prior) on Apr 04, 2007 at 14:12 UTC | |
|
Re: Finding Line numbers in a file
by ferreira (Chaplain) on Apr 04, 2007 at 14:13 UTC | |
|
Re: Finding Line numbers in a file
by ahmad (Hermit) on Apr 04, 2007 at 14:38 UTC | |
|
Re: Finding Line numbers in a file
by kyle (Abbot) on Apr 04, 2007 at 14:52 UTC | |
by reasonablekeith (Deacon) on Apr 04, 2007 at 15:29 UTC | |
by Rhandom (Curate) on Apr 04, 2007 at 16:09 UTC | |
by sanPerl (Friar) on Apr 04, 2007 at 15:51 UTC |