in reply to Nested foreach
--perlplexer$_ = qr/\Q$_\E/ for @ignore; # precompile regexes foreach my $line (@words){ $line =~ tr/A-Z/a-z/; # or lc() foreach my $ignore (@ignore){ $line =~ s/$ignore//g; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Nested foreach
by esoteric neonate (Novice) on Apr 25, 2003 at 17:33 UTC | |
by Thelonius (Priest) on Apr 25, 2003 at 17:44 UTC | |
by esoteric neonate (Novice) on Apr 25, 2003 at 18:16 UTC | |
by Thelonius (Priest) on Apr 25, 2003 at 19:31 UTC | |
by esoteric neonate (Novice) on Apr 25, 2003 at 20:57 UTC |