Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Comparing Hash's key to an <STDIN> and print it's corresponding value

by biohisham (Priest)
on Apr 05, 2011 at 20:43 UTC ( [id://897596]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #Consider the output of the following
    my %family_name = (
    ...
    print "@keys\n";
    my @values = values %family_name;
    print "@values\n";
    
  2. or download this
    use strict;
    use warnings;
    ...
            my ($n,$i) = @_;
            print "$n is already there and her family name is $values[$i]\
    +n";
            }
    
  3. or download this

Log In?
Username:
Password:

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

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

    No recent polls found