in reply to Re: Read Only Error -- Sorting an Array
in thread Read Only Error -- Sorting an Array
Your solution with grep is the one I eventually used. With the map implementation, I was throwing away the '0' numerals. Do you know why that is?
I interpreted map {$_ ? $_ : ()} as saying, this such that this is whitespace. So then, why is it throwing away '0'? And length $_ solves this by keeping things that have a length? Since '0' has length of 1 but '' hasn't a length..?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Read Only Error -- Sorting an Array
by tobyink (Canon) on Sep 18, 2012 at 06:56 UTC | |
by perlstudent89 (Initiate) on Sep 18, 2012 at 20:25 UTC |