Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: What I Most Recently Learned in Perl, But Should Have Already Known

by pKai (Priest)
on Aug 17, 2006 at 22:55 UTC ( #568039=note: print w/ replies, xml ) Need Help??


in reply to Re: What I Most Recently Learned in Perl, But Should Have Already Known
in thread What I Most Recently Learned in Perl, But Should Have Already Known

# $rec is an alias...

It's the previously declared lexical, implicitly localized. See perldoc perlsyn...

Shorter example, without the need to blame AoH for the problem:

my $var = 4; for $var (1 .. 9) { last if $var == 7; } print $var; # prints: 4


Comment on Re^2: What I Most Recently Learned in Perl, But Should Have Already Known
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-08-01 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls