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; } }
In reply to Re: Re: Re: Re: Nested foreach
by esoteric neonate
in thread Nested foreach
by esoteric neonate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |