Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 romping around the Monastery: (16)
As of 2015-07-07 18:07 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 (93 votes), past polls