Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Assign in loop with and without declaration

by mwah (Hermit)
on May 22, 2008 at 08:26 UTC ( #687895=note: print w/replies, xml ) Need Help??


in reply to Assign in loop with and without declaration

imho, it creates it's own scope level that includes the LHS of the assignment:

... { my $j; $j = $_ for (1 ..3) } ...

Regards

mwa

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2021-04-15 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?