Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Tree Structure Challenge

by choroba (Archbishop)
on Nov 29, 2015 at 23:29 UTC ( #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
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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2020-11-01 01:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (291 votes). Check out past polls.

    Notices?