in reply to array value generation for sections
But the hash isn't a bad way to do it. You can make the assignment much simpler:sub number_to_letter { return chr(96+shift); }
Updated: fixed cut-and-paste-o whereby I had 'return' twicemy %h; @h{1..18} = 'a'..'r';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: array value generation for sections
by muba (Priest) on Jul 08, 2004 at 10:56 UTC | |
by muntfish (Chaplain) on Jul 08, 2004 at 11:27 UTC |