Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 little questions about lists and hashes

Status
Not open for further replies.

moroshko

Programmer
May 24, 2008
14
IL
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 !!
 
grep and exists

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top