Perl already has all the info from the previous lstat command, using _
is more efficient in that it doesn't have to do another system call.

On Feb 11, 2008 2:06 PM, David Moreno <[EMAIL PROTECTED]> wrote:
> On Feb 11, 2008 4:47 PM, John W. Krahn <[EMAIL PROTECTED]> wrote:
>
> > lstat $filename;
> > my $size = -s _;
>
>
> Did you mean:
>
> my $size = -s $_;
>
> ?
>
> --
> David Moreno - http://www.damog.net/
> Yes, you can.
>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to