[ Please stop this top-posting!! And David, you'd better ask your Perl
questions of general interest to the list. ]
Kashif Salman wrote:
David Moreno wrote:
Kashif Salman wrote:
David Moreno 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 $_;
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.
That is very interesting, actually. What piece of documentation should I
read to learn about this operators?
I am not sure how to bring it up using the perldoc, I read it when I
was going through the book "Learning Perl". Maybe someone else here
can point out how to find it in perldoc..
perldoc -f -X
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/