There's more than one way to do things | |
PerlMonks |
Re: Re: more ways to filesizeby Chmrr (Vicar) |
on Aug 06, 2002 at 01:05 UTC ( [id://187877]=note: print w/replies, xml ) | Need Help?? |
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:
perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
In Section
Seekers of Perl Wisdom
|
|