Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Second question is, to determine the number of lines in ANY type of file..is this the best idea?
Thanks everyonemy $count = 0; open(FILE, "image.gif") or die "we had a problem $!"; while(<FILE>) { $count++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Shell scripts?
by eXile (Priest) on Apr 30, 2004 at 04:19 UTC | |
|
Re: Shell scripts?
by Zaxo (Archbishop) on Apr 30, 2004 at 04:26 UTC | |
|
Re: Shell scripts?
by Plankton (Vicar) on Apr 30, 2004 at 04:03 UTC | |
|
Re: Shell scripts?
by perlinux (Deacon) on Apr 30, 2004 at 08:21 UTC | |
by pelagic (Priest) on Apr 30, 2004 at 08:27 UTC | |
by gellyfish (Monsignor) on Apr 30, 2004 at 11:30 UTC | |
by thor (Priest) on Apr 30, 2004 at 12:07 UTC | |
by gellyfish (Monsignor) on Apr 30, 2004 at 12:09 UTC | |
by pelagic (Priest) on Apr 30, 2004 at 12:37 UTC |