CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
2 little questions about lists and hashes

 



moroshko
Novice

Jun 20, 2008, 1:10 PM

Post #1 of 3 (485 views)
2 little questions about lists and hashes Can't Post

Hello !

I have 2 little questions:

1) How do I ask Perl if $x belongs to list @array ?

2) How do I ask Perl if $x is one of the keys of hash %h ?

Thanks !!


KevinR
Veteran


Jun 20, 2008, 9:18 PM

Post #2 of 3 (473 views)
Re: [moroshko] 2 little questions about lists and hashes [In reply to] Can't Post

"grep" for the array and "exits" for the hash.
-------------------------------------------------


moroshko
Novice

Jun 21, 2008, 1:37 AM

Post #3 of 3 (467 views)
Re: [KevinR] 2 little questions about lists and hashes [In reply to] Can't Post

Thanks !!

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives