Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by PodMaster (Abbot)
on May 07, 2003 at 08:56 UTC ( [id://256149]=note: print w/replies, xml ) Need Help??


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

Which version of File::stat are you using?
File::Stat is very little code, so I can't see how it'd be giving you negative values.
Just use stat and see what happens.
BTW, what does perl -V:uselargefiles report?


MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
** The Third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: File::stat's size method returns negative values
by djw (Vicar) on May 07, 2003 at 14:14 UTC
    I think you have found something here PodMaster. Here is the output of perl -V:userlargefiles:

    >perl -V:uselargefiles uselargefiles='undef';
    After a little more investigation it seems that any file over exactly 2gb (2,147,483,648 bytes) is giving the negative results. I have a file that is 2,004,792,320 bytes that is being reported properly. I guess I will have to figure out how to tell perl to use large files, then try again.

    Thanks for all the help.

    UPDATE: I am an idiot and here's why: 107391. I'll just go away now *hangs head in shame*.
    UPDATE 2: I did some searching and since I can't ./configure on a win32 system, I'm not sure how I can add 'uselargefiles'. Does anyone know for sure if this can't be done on a win32 system? Thanks.

    djw

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://256149]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-03-29 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found