@{ ... } dereferences a reference into an array. In this case, you're trying to coerce the return value of $_ =~ m// into being an array. That actually attempts to create a symbolic reference, creating a variable named @1.
$#{ ... } tries to find the highest index of @1.
If you turn on use strict; and use warnings; you'll get all sorts of clues.
Dave
In reply to Re: Why "Bizzare copy" ?
by davido
in thread Why "Bizzare copy" ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |