Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Re: more ways to filesize

by Chmrr (Vicar)
on Aug 06, 2002 at 01:05 UTC ( #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'

Comment on Re: Re: more ways to filesize
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2016-02-11 03:36 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (358 votes), past polls