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.
open my $file, ...
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 reply to Re: Declare my variable in sysread - Mojo::File::slurp
by ikegami
in thread Declare my variable in sysread - Mojo::File::slurp
by srchulo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |