in reply to Re: Putting weird things into $#array
in thread Putting weird things into $#array
I would expect
to be the same thing. Just like how$#a = $foo; $#a = $foo + 0;
is the same (unless %hash is tied). But this is not the case -- when $foo is a reference and I retrieve $#a, it is also acting much like (but not entirely like) a reference, not just a number.$hash{$foo} = 1; $hash{"".$foo} = 1;
blokhead
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Putting weird things into $#array
by chromatic (Archbishop) on Mar 07, 2005 at 22:13 UTC | |
by samtregar (Abbot) on Mar 07, 2005 at 22:18 UTC | |
by blokhead (Monsignor) on Mar 07, 2005 at 22:22 UTC |