Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by LanX (Canon)
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 imbibing at the Monastery: (6)
As of 2015-07-04 18:17 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 (60 votes), past polls