Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: more ways to filesize

by Chmrr (Vicar)
on Aug 06, 2002 at 01:05 UTC ( [id://187877]=note: print w/replies, xml ) Need Help??


in reply to Re: more ways to filesize
in thread more ways to filesize

Actually, it's probably better written as:

if (my $size = -s $file)

..or, if you don't like the assignment in the if, you can keep the (oh-so-slight..) efficiency increase by saying:

if (-s $file) my $size = -s _;

perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-28 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found