Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: reading from file.

by Eily (Monsignor)
on Nov 13, 2013 at 21:36 UTC ( #1062482=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @nameList = qw/Anna Beatrix Claude Damian/;
    my %names = map { $_ => 1 }, @nameList; # associate the value 1 to eac
    +h name in @namelist. Actually the value could be anything in this cas
    +e
    print "Anna exists" if exists $names{"Anna"};
    print "Paul doesn't exist" unless exists $names{"Paul"};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2022-09-28 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (124 votes). Check out past polls.

    Notices?