|
|
| P is for Practical | |
| PerlMonks |
Re: Sorting array, getting modification of read-only value errorby tobyink (Prior) |
| on Nov 28, 2012 at 18:51 UTC ( #1006091=note: print w/ replies, xml ) | Need Help?? |
|
I suspect autovivification. Minimal example:
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||