Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This works fine on small files, but any file teh exceeds the 32-bit integer has a negative value for size. Does anyone know how for me to get the actual value of the file, other than a DOS DIR? I don't want to do a DOS DIR and parse the output.my $file = "c:/autoexec.bat"; my $fStats = stat($file); print "Size is: " . $fStats[7]. "\n";
Edit Masem 2001-08-23 - Added CODE tags
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: negative stat value
by jlongino (Parson) on Aug 23, 2001 at 21:24 UTC | |
by Anonymous Monk on Aug 23, 2001 at 23:41 UTC | |
(tye)Re: negative stat value
by tye (Sage) on Aug 24, 2001 at 11:27 UTC |