Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

treat pairs, set as one item: looking for better way

by remiah (Hermit)
on Oct 19, 2013 at 03:34 UTC ( #1058866=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @key_array = 'a' .. 'z';
    my @set_array = ( ['a', 'b'],  ['e','f'], ['f','g'] );
    
  2. or download this
    use strict; use warnings; use Data::Dumper;
    my @key_array = 'a' .. 'z';
    ...
    for ( grep {$key_hash{$_} == 0 } sort {$a cmp $b} keys %key_hash ){
        print "$_\n";
    } 
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1058866]
Approved by Athanasius
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2015-07-07 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls