Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Tree Structure Challenge

by choroba (Cardinal)
on Nov 29, 2015 at 23:29 UTC ( [id://1148837]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Reptile - Snake - Python
                    - Cobra
    ...
                    - Wolf
           - Bovine - Cow
                    - Bison
    
  2. or download this
    my $zoo = 'Zoo'->new(qw( Cobra Pigeon Zebra ));
    
  3. or download this
    print join ' ', $zoo->get_leaves;  # Cobra Pigeon Zebra
    
  4. or download this
    'Zoo'->diff( 'Zoo'->new('Cobra'),
                 'Zoo'->new('Fox')
               )
    
  5. or download this
    ( [qw[ Fox Canine Mammal ]],
      [qw[ Cobra Snake Reptile ]]
    )
    
  6. or download this
    'Zoo'->diff( 'Zoo'->new(qw( Dog Fox Wolf )),
                 'Zoo'->new(qw( Fox )));
    
  7. or download this
    ( [],
      [ 'Dog', 'Wolf' ]
    )
    
  8. or download this
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
    }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-18 05:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found