From: Simon Krahnke Date: 2009-01-29T20:32:44+09:00 Subject: Re: if statement not working with Hash object * Sebastian Hungerecker (2009-01-20) schrieb: > 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. Shouldn't the statement above always be executed then? mfg, simon .... l