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

Re^2: Hash assignments using map

by njcodewarrior (Pilgrim)
on Feb 24, 2007 at 18:32 UTC ( [id://601903]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    
    ...
              'c' => 'x',
              'a' => 'z'
          };
    
  2. or download this
    my @to_keep = qw{ a c };
    my %keepers;
    ...
              'c' => 1,
              'a' => 1
            };
    
  3. or download this
    my @to_keep = qw{ a c };
    my %keepers;
    ...
    $keepers1 = {
              'a' => 'c'
            };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found