in reply to Declare my variable in sysread - Mojo::File::slurp
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 Section
Seekers of Perl Wisdom