in reply to IF NOT! IF NOT!
Your problem is you need to pass grep an array @words, not part of the array $words[$x]... if $words[$x] contains a sub array you need to dereference it like... @{$words[$x]}unless(grep /home/, @words) { print $words[$x]; }
It would help if you said a little more about what the data is
Update Nevermind... from other people responses I see what is going on... yeah, you probably want
oops :)print $words[$x] if $words[$x] =~ /home/;
- Ant
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: font color="#ff0000"IF NOT! IF NOT!/font
by dragonchild (Archbishop) on Aug 02, 2001 at 22:56 UTC | |
by Hofmator (Curate) on Aug 03, 2001 at 13:11 UTC | |
by dragonchild (Archbishop) on Aug 03, 2001 at 17:17 UTC | |
by Hofmator (Curate) on Aug 03, 2001 at 17:43 UTC | |
by dragonchild (Archbishop) on Aug 03, 2001 at 17:54 UTC | |
by suaveant (Parson) on Aug 02, 2001 at 22:59 UTC |