in reply to Re: Getting a grip on codegrep/code
in thread Getting a grip on grep

grep() is not solely a regex tool. It actually takes ANY expression you give it:
# grep EXPR, LIST @biggish = grep $_ > 10, @numbers;

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re: Re: Re: Getting a grip on codegrep/code
by Amoe (Friar) on Sep 26, 2001 at 23:15 UTC
    Cool, I didn't know that but it makes sense. Thanks.

    --
    my @words = grep({ref} @clever);
    sub version { print "I cuss your capitalist pig tendencies bad!\n" }