Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 perusing the Monastery: (8)
As of 2014-12-18 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls