Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: OO Pattern Container x Elements and Method Chaining

by choroba (Archbishop)
on Oct 08, 2021 at 15:38 UTC ( #11137354=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    $cont2->add_elem($elem1);
    $cont1 == $cont1->get_elem('one')->active_container and say 'ok';
    $cont2 == $cont2->get_elem('one')->active_container and say 'ok';
    
  2. or download this
    my $e1 = $cont1->get_elem('one');
    my $e2 = $cont2->get_elem('one');
    $e1->active_container ne $e2->active_container or die;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2022-01-27 23:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (72 votes). Check out past polls.

    Notices?