Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 browsing the Monastery: (8)
As of 2021-06-16 14:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (74 votes). Check out past polls.

    Notices?