Sorry, but that's wrong.
Your code will only work if @array1 is (1..7). If it is, say, ('H'..'N'), it will return the wrong result.
In reply to Re: Re: prepend string to entire array
by Anonymous Monk
in thread prepend string to entire array
by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |