Gossamer Forum
Home : General : Perl Programming :

stat() not working right?

Quote Reply
stat() not working right?
Hi,

I'm having a problem using the stat() function :/ I currently have;

Code:
my $bytes = (stat("d:/inetpub/wwwroot/mydomain.com/submit/docs/$startid/".$filename))[7] || 0;

.. which *shoul* be reading "d:/inetpub/wwwroot/mydomain.com/submit/docs/4/17th December 2004.doc", and passing back the size.

My debug info seems to be ok; (except the byte size)

Quote:
Getting stats for: d:/inetpub/wwwroot/mydomain.com/submit/docs/4/17th December 2004.doc
Bytes Grabbed: 0

Am I missing something really stupid? :/

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread stat() not working right? Andy 5617 Jan 11, 2005, 7:16 AM
Thread Re: [Andy] stat() not working right?
Wil 5555 Jan 11, 2005, 7:42 AM
Thread Re: [Wil] stat() not working right?
Andy 5560 Jan 11, 2005, 7:47 AM
Thread Re: [Andy] stat() not working right?
Alex 5615 Jan 11, 2005, 3:20 PM
Post Re: [Alex] stat() not working right?
Andy 5528 Jan 11, 2005, 11:34 PM