Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Declare my variable in sysread - Mojo::File::slurpby ikegami (Patriarch) |
on Dec 22, 2018 at 00:39 UTC ( [id://1227589]=note: print w/replies, xml ) | Need Help?? |
You say you've never seen this before, but you've done in a million times. Just look at the previous line of your code.
my $var not only declares the variable at compile-time, it also returns the variable (as an lvalue) as if you had simply written $var.
In Section
Seekers of Perl Wisdom
|
|