Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by phenom (Chaplain)
on Jun 23, 2004 at 00:46 UTC ( #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
Node Status?
node history
Node Type: note [id://368904]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2021-05-15 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (150 votes). Check out past polls.

    Notices?