in reply to file size test on 5.005_3?

You need to include the directory name with the file name, e.g.
my $fullfilename = "$dir/$file"; my $fsize = (-s $fullfilename); # get the file size my $isdir = (-d $fullfilename); # get the file size
Updated: Oh, $dir = ".". In the words of Emily Litella, "Never mind!"