in reply to Getting file size
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
|
|---|