Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by jwkrahn (Monsignor)
on Dec 21, 2018 at 19:35 UTC ( #1227578=note: print w/replies, xml ) Need Help??


in reply to Declare my variable in sysread - Mojo::File::slurp

This is one of the idiosyncrasies of scoping that is rarely talked about.

while ( my $var = ... ) { # $var visible here } continue { # $var also visible here } if ( my $var = ... ) { # $var visible here } elsif ( ) { # $var also visible here } else { # $var also visible here }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2019-12-09 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?