From: Sebastian Hungerecker Date: 2009-01-21T07:25:58+09:00 Subject: Re: if statement not working with Hash object Mmcolli00 Mom wrote: > if word != /Date1|packageId/ then  #<----------does not evaluate, i am > not sure if i am using hash correctly This has nothing to do with hashes. word is a string /Date1|packageId/ is a regexp. They will never be equal. I'm pretty sure you want !~ ("does not match") instead of != ("is not equal to") there. HTH, Sebastian -- NP: In Flames - Coerced Coexistence Jabber: sepp2k@jabber.org ICQ: 205544826