in reply to Looking for a better way to get the number of lines in a file...
my $length = `wc -l $filename`; chomp($length);
Best regards,
perl -e "print a|r,p|d=>b|p=>chr 3**2 .7=>t and t"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Looking for a better way to get the number of lines in a file...
by RedDog (Pilgrim) on Dec 11, 2001 at 05:15 UTC | |
by blakem (Monsignor) on Dec 11, 2001 at 05:56 UTC |