in reply to Re: Is for the wrong choice here?
in thread Is 'for' the wrong choice here?

Well, that works better than what I had except that it apparently tests true every time. Every iteration is printing $blah even when $author is not a match. Advice?
TIA
jg
_____________________________________________________
If it gets a little bit out of hand sometimes, don't let it fool you into thinkin' you don't care.TvZ

Replies are listed 'Best First'.
Re: Re: Re: Is for the wrong choice here?
by jerrygarciuh (Curate) on Jan 18, 2002 at 22:15 UTC
    This code gets the same results:
    if ( grep { /($admin_user)/i } $author ) { print "$blah "; } else { print "$uber_blah"; }

    TIA
    jg
    _____________________________________________________
    If it gets a little bit out of hand sometimes, don't let it fool you into thinkin' you don't care.TvZ