in reply to Re: Re: Re: Nested foreach
in thread Nested foreach
doesn't change the outcome of the program either :( No words are ignored but you were right, I need the //g :)foreach my $line (@words) { $line =~ tr/A-Z/a-z/; foreach my $ignore (@ignore) { $line =~ s/\b$ignore\b//g; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Nested foreach
by Thelonius (Priest) on Apr 25, 2003 at 19:31 UTC | |
by esoteric neonate (Novice) on Apr 25, 2003 at 20:57 UTC |