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

Re: stuck in a hash

by neniro (Priest)
on Aug 04, 2005 at 23:10 UTC ( #481039=note: print w/replies, xml ) Need Help??


in reply to stuck in a hash

Using Perl6::Junction works fine too:
#!/usr/bin/perl use strict; use warnings; use Perl6::Junction qw/none/; use Data::Dumper; my %colors = ( red => '#ff0000', blue => '#0000ff', green => '#00ff00', yellow => '#ffff00', ); my @sel_col = qw/ red green /; print Dumper [grep {none(@sel_col) eq $_} keys %colors];

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2023-02-05 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (32 votes). Check out past polls.

    Notices?