in reply to Why "Bizzare copy" ?
@{ ... } 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Why "Bizzare copy" ?
by Anonymous Monk on Mar 30, 2004 at 08:49 UTC | |
by Tomte (Priest) on Mar 30, 2004 at 10:34 UTC | |
by bunnyman (Hermit) on Mar 30, 2004 at 21:33 UTC | |
by Anonymous Monk on Mar 30, 2004 at 11:04 UTC | |
by CountZero (Bishop) on Mar 30, 2004 at 19:22 UTC |