http://qs321.pair.com?node_id=779068


in reply to Re^4: Mini-Tutorial: Working with Odd/Even Elements
in thread Mini-Tutorial: Working with Odd/Even Elements

Array elements aren't lexical variables, if that's what you're talking about.
No, I was saying that my "orig value" came back without my making them local (see the other reply to my node), but apparently that's not a reliable feature. I was using ActivePerl, for the record.

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^6: Mini-Tutorial: Working with Odd/Even Elements
by ikegami (Patriarch) on Jul 13, 2009 at 17:55 UTC
    Oh! I thought you were using
    local @{$pkg}{qw(a b)} = \(@_[0,1]);
    rather than
    @{$pkg}{qw(a b)} = \(@_[0,1]);

    I can reproduce that bug with

    This is perl, v5.8.8 built for MSWin32-x86-multi-thread (with 12 registered patches, see perl -V for more detail) Binary build 824 [287188] provided by ActiveState http://www.ActiveSta +te.com Built Sep 3 2008 11:14:55
    but not with
    This is perl, v5.8.0 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Binary build 806 provided by ActiveState Corp. http://www.ActiveState. +com Built 00:45:44 Mar 31 2003
    This is perl, v5.10.0 built for MSWin32-x86-multi-thread (with 5 registered patches, see perl -V for more detail) Binary build 1004 [287188] provided by ActiveState http://www.ActiveSt +ate.com Built Sep 3 2008 13:16:37
    or
    This is perl, v5.8.8 built for i486-linux-gnu-thread-multi