[Pdx-pm] anonymous (?) regex use - nevermind, solved

Randal L. Schwartz merlyn at stonehenge.com
Wed Jan 12 13:26:48 PST 2005


>>>>> "Michael" == Michael Rasmussen <mikeraz at patch.com> writes:

Michael>    @found = grep {/$regex/} @group;

or

        @found = grep $_ =~ $regex, @group;


-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


More information about the Pdx-pm-list mailing list