in reply to Re: Declare my variable in sysread - Mojo::File::slurpin thread Declare my variable in sysread - Mojo::File::slurp
my $line appears as an argument of defined.
No, it doesn't. It's an operand of =, not defined.
Yes, = is an operand of defined, but your whole point is that sysread($file, my $buf, ...) is like defined(my $line), but your code doesn't use defined(my $line).
PerlMonks, of course - how could you ask?
Games & puzzles
Arts & music
Whichever pays my bills
Results (278 votes). Check out past polls.