in reply to Re: Getting file size
in thread Getting file size
But I tryed your code with a file that is in the same directory as the script I am running and it dies for some strange reason.
my $filename = "tools2.pl";
my $size = -s $filename;
unless ($size) { die "+++++***** error getting file size [$filename]: [$!] *****+++++";}
I appreciate all the help I get from this site, everybody replied so darn fast!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Getting file size
by kabel (Chaplain) on Sep 25, 2002 at 08:01 UTC |