Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How can I determine the size of a file?

by phenom (Chaplain)
on Jun 23, 2004 at 00:46 UTC ( [id://368904]=note: print w/replies, xml ) Need Help??


in reply to How can I determine the size of a file?

Although it's the same difference, if you want to use a module, try File::stat.
#!/usr/bin/perl use strict; use warnings; use File::stat; my $file = shift; my $st = stat($file); my $size = $st->size; print $size, "KB";

Log In?
Username:
Password:

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

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

    No recent polls found