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';
In reply to Re: array value generation for sections
by Zed_Lopez
in thread array value generation for sections
by murugu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |