Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Declare my variable in sysread - Mojo::File::slurp

by ikegami (Pope)
on Dec 22, 2018 at 00:43 UTC ( #1227590=note: print w/replies, xml ) Need Help??


in reply to Re: Declare my variable in sysread - Mojo::File::slurp
in 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.

Replies are listed 'Best First'.
Re^3: Declare my variable in sysread - Mojo::File::slurp
by choroba (Archbishop) on Dec 22, 2018 at 00:46 UTC
    But the = is, in turn, an argument operand to defined.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

      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).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1227590]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2019-12-06 20:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (159 votes). Check out past polls.

    Notices?