As this is the most likely cause of your missing filesize.defined(my $size = -s $filename) or die "ack: $!"; # or using stat() defined(my $size = [stat $filename]->[7]) or die "ack: $!";
_________
broquaint
update: changed code to check definedness instead of the truthfulness of size ... hmm I'm sure there's a joke in their somewhere
In reply to Re: Getting file size
by broquaint
in thread Getting file size
by Willman023
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |