Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Sorting array, getting modification of read-only value error

by tobyink (Abbot)
on Nov 28, 2012 at 20:04 UTC ( #1006096=note: print w/replies, xml ) Need Help??


in reply to Re^2: Sorting array, getting modification of read-only value error
in thread Sorting array, getting modification of read-only value error

You can print out undefined values. (Though if you have warnings enabled, that kind of behaviour will earn you one.)

I'm not entirely sure how you'd fix it. Some self-contained code which doesn't rely on files from your system that I don't have on my computer might help.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
  • Comment on Re^3: Sorting array, getting modification of read-only value error

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006096]
help
Chatterbox?
[karlgoethebier]: Ouch! How can i link to a section in my profile?
[erix]: I suppose you have to add anchors yourself

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-06-24 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (557 votes). Check out past polls.