Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Set intersection problem

by kcott (Archbishop)
on May 23, 2023 at 15:36 UTC ( [id://11152395]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    
    printf $fmt, $_, 0+@{$venn{$_}}, "@{$venn{$_}}" for sort keys %venn;
    
  2. or download this
    Sets     #  Elements
    ----     -  --------
    ...
    G        2  eel hog
    H        1  zoo
    I        1
    
  3. or download this
    #!/usr/bin/env perl
    
    ...
        printf $fmt, $sets, 0+@{$venn{$sets}},
            join ' ', sort @{$venn{$sets}};
    }
    
  4. or download this
    Sets     #  Elements
    ----     -  --------
    ...
    G        2  eel hog
    H        1  zoo
    I        1
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-09-17 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (22 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.