Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: OO Pattern Container x Elements and Method Chaining

by choroba (Cardinal)
on Oct 08, 2021 at 15:38 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-19 00:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found