[TriLUG] Perl Question

Mark Freeze mfreeze at gmail.com
Mon Jul 31 16:57:53 EDT 2006


Can anyone give me a tip on finding the size of a file with perl?

I am using the following method to parse through a list of files
within a specific directory after using readdir.

foreach $listitem (@contents)
{
   ...do some stuff to each file...
}

What I'd like to do is skip over any file that has a size of zero.

Thanks,
Mark.



More information about the TriLUG mailing list