Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: inside-out objects using arrays?

by rvosa (Curate)
on Sep 18, 2005 at 18:11 UTC ( #493040=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Outside::In;
    use strict;
    ...
        'old' => sub { $oldnode1->get_parent },
        'new' => sub { $newnode1->get_parent }
    });
    
  2. or download this
            Rate  old  new
    old 477555/s   -- -34%
    new 723066/s  51%   --
    
  3. or download this
    sub get_parent {
        return $_[0]->{'PARENT'};
    }
    
  4. or download this
    sub get_parent {
        return $parent[${$_[0]}];
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2014-07-28 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (193 votes), past polls