in reply to Re: Re: File::stat's size method returns negative values
in thread File::stat's size method returns negative values
#!/usr/bin/perl -w use strict; my $file = $0; # how BIG am I ? my $pstat_size = (stat($file))[7]; (my $qstat_size) = qx(stat $file) =~ m/Size: (-?\d+)/; print "$pstat_size, $qstat_size\n"; # not that big
(code assumes *nix or MS system with a visible stat exe somewhere)
|
---|