in reply to Bug with weaken vs tie ???
The net affect of this is that weaken($b[0]) is actually trying to weaken the temporary proxy object rather then the stored reference. (At least that's what I'm speculating; I've got a cold and it's too much effort to check right now)sub p1 { print $_[0]} p1($tied_array[0]); # calls FETCH sub p2 { $_[0] = 0 } p2($tied_array[0]); # calls STORE
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bug with weaken vs tie ???
by nothing94 (Initiate) on Feb 28, 2005 at 20:17 UTC |