Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by myelinviolin (Novice)
on Nov 28, 2012 at 21:00 UTC ( #1006099=note: print w/replies, xml ) Need Help??


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

This worked!! Thank you so much! This makes so much sense with the autovivication now. There WAS a gap in the array, so that's why it couldn't sort it. I know I do things differently than most people, but for me, readability and ease of use trump inefficiency any day. As long as the program runs without any wait periods, then it's ok with me.
  • Comment on Re^2: Sorting array, getting modification of read-only value error

Replies are listed 'Best First'.
Re^3: Sorting array, getting modification of read-only value error
by Anonymous Monk on Nov 29, 2012 at 09:21 UTC

    ...I don't think the grandparent was talking about inefficiency when he said "sub-optimal"...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006099]
help
Chatterbox?
[stevieb]: cheers beech. twas totally my mistake, and I got bit. When things work for so long without issue, one becomes complacent (ie. replace we/one with I ;) I've been copy/pasting that around for a few years without a hiccup, so when...
[stevieb]: choroba pointed that out, I was just, you know, *sigh*. In effect, I was lucky and fortunate
[stevieb]: Kind of like my regex-fu went out the window, but only while looking at that specific file ;)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2017-07-25 23:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (383 votes). Check out past polls.