Short answer: replace @alpha with @array!
Slightly longer but more fundamental answer: always put use strict; at the beginning of your code. OK, this means that you have to change your first line to:
my @array = ('a'..'z');...but the extra typing pays dividends, since Perl itself would have pointed this error out to you, thus saving you the time it took you to post to perlmonks :-)
dave
Update: BTW, your line $,=''; doesn't actually do anything unless you had previously set $, to something else...
In reply to Re: splice question
by Not_a_Number
in thread splice question
by agent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |