Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: Mini-Tutorial: Working with Odd/Even Elements

by Roy Johnson (Monsignor)
on Jul 10, 2009 at 23:40 UTC ( #779068=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^5: Mini-Tutorial: Working with Odd/Even Elements
Replies are listed 'Best First'.
Re^6: Mini-Tutorial: Working with Odd/Even Elements
by ikegami (Pope) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://779068]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2015-07-29 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls