Try stat().  It is a built-in function.

>From perldoc -f stat:

stat FILEHANDLE
stat EXPR
stat    Returns a 13-element list giving the status info
        for a file, either the file opened via FILEHANDLE,
        or named by EXPR.  If EXPR is omitted, it stats
        "$_".  Returns a null list if the stat fails.
        Typically used as follows:

            ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
               $atime,$mtime,$ctime,$blksize,$blocks)
                   = stat($filename);

Rob

-----Original Message-----
From: Chinku Simon [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 5:24 PM
To: [EMAIL PROTECTED]
Subject: How do you find out the size of a file


Hi,

I have a requirement to find out the size of a file existing in an NTFS file
system.

Are there any suitable modules that can be used?

Thanks in advance
Chinku

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to