DailyDubya has asked for the wisdom of the Perl Monks concerning the following question:
Thanks!foreach my $word (split /\s+/, $line) { $word =~ s/microsoft/monopoly/gi; print $word if $word =~ /yes/; }
2002-05-09 Edit by Corion : Added CODE tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: No explicit $_ ?
by jeffa (Bishop) on May 09, 2002 at 14:19 UTC | |
|
Re: No explicit $_ ?
by Chady (Priest) on May 09, 2002 at 15:30 UTC | |
by hopes (Friar) on May 09, 2002 at 15:46 UTC | |
|
Re: No explicit $_ ?
by hotshot (Prior) on May 09, 2002 at 14:22 UTC |