I would point you to

perldoc -f exists
perldoc -f defined

and you will end up with either
if (exists $hashname{$variable})
if (defined $hashname{$variable})

depending on your definition of 'set'.

Notice the {} around the variable instead of [].

                /\/\ark

-----Original Message-----
From: Jessica [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 11:47 AM
To: [EMAIL PROTECTED]
Subject: Re: need help extracting words from a string - Thanks and need
more help



This list Rocks! I have never gotten so much useful help from a list in my
life. So many responces and so many ways of doing the same thing. Its
amazing...

Thank you very much to everyone that responded with ideas to my problem.
They have helped tremendously.

But now I have hopefully another one that is just as simple.

Is it possible to test if a hash variable is set? My thinking is something
kinda like this:

if ( $hashname[variable] ) {
      do something smart again ;
}

Is that possible?

Thanks in advance,

Jessica





---------------------------------
Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to