Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: File::stat's size method returns negative values

by leriksen (Curate)
on May 07, 2003 at 00:55 UTC ( #256089=note: print w/replies, xml ) Need Help??


in reply to Re: Re: File::stat's size method returns negative values
in thread File::stat's size method returns negative values

not an answer, but a means of reconciling - could you also do a qx(stat $_) and see how those values compare to perls built-in stat (or File::Stat 's over-ride)?
#!/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

output is 175, 175
I ran this against some 2G+ oracle dbf's, no problem

(code assumes *nix or MS system with a visible stat exe somewhere)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://256089]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2018-02-23 18:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (307 votes). Check out past polls.

    Notices?