Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^17: ref to read-only alias ... why? (notabug)

by LanX (Sage)
on Jan 08, 2012 at 21:04 UTC ( #946919=note: print w/replies, xml ) Need Help??


in reply to Re^16: ref to read-only alias ... why? (notabug)
in thread ref to read-only alias ... why?

my $a = 2; $_++ for 1..$a; print "$a\n"; # 2

thats a confusing example, nothing else than

my $a = 2; $_++ for 1..2; print "$a\n";

I don't understand what it's supposed to prove.

Cheers Rolf

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2022-09-30 18:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (126 votes). Check out past polls.

    Notices?