There's more than one way to do things | |
PerlMonks |
Re: Count the number of lines in a fileby nobull (Friar) |
on May 25, 2004 at 17:11 UTC ( [id://356297]=note: print w/replies, xml ) | Need Help?? |
You can get the size of a file with -s but that's not the same as the number of characters unless the file uses an encoding that is always one byte per character.
You can call this script with the files as standard input and standard output. If you want to open the files within the Perl script instead use the open() function.
In Section
Seekers of Perl Wisdom
|
|