in reply to Re: does not exist in an array
in thread does not exist in an array
But this doesn't work as it prints the message out several times. I just want it to print the message once if the text i enter doesn't match any of the array elements.foreach (@array) { if ($text ne $_) { print "doesn't exist!"; } }
thanks for your help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: does not exist in an array
by dmorelli (Scribe) on Mar 10, 2005 at 03:03 UTC |