Well... The first line inside the loop is redundant, as you assign a string to an array, then overwrite that same array.
Your code below is laso relying on $_ in cases where there is no value.
Consider this:
while (<>) { for (/(\d+)/g) { print $_, "\n"; } }
In reply to Re: Yet another array problem
by pbeckingham
in thread Yet another array problem
by Angharad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |