in reply to No explicit $_ ?

lately, I'm becoming addicted.

print grep { /yes/; } map { s/microsoft/monopoly/gi; } split /\s+/, $line;

He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/

Replies are listed 'Best First'.
Re: Re: No explicit $_ ?
by hopes (Friar) on May 09, 2002 at 15:46 UTC
    One more...
    print grep{/yes/&&s/microsoft/monopoly/gi}(split /\s+/, $line);


    Hopes
    $_=$,=q,\,@4O,,s,^$,$\,,s,s,^,b9,s, $_^=q,$\^-]!,,print