Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: ref to read-only alias ... why? (not consistent)

by LanX (Abbot)
on Jan 06, 2012 at 17:35 UTC ( #946633=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<108> sub inc_a { $_[0]++; return }
     
    ...
    2
      DB<110> inc_a(1)
    Modification of a read-only value attempted at (eval 13)[/usr/share/pe
    +rl/5.10/perl5db.pl:638] line 2.
    
  2. or download this
      DB<111> sub inc_b { my $r=\ $_[0]; $$r++; return }
     
    ...
      DB<113> inc_b(1)
     
      DB<114> 
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-04-17 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (458 votes), past polls