If i understand you right than maybe this:
my @search_list = qw( Perl PHP Ruby ); my $search_str = join( "|", @search_list ); if ( m/$search_str/ ) { $check = $_; }
Note: that there is no need to write
$_ =~ m/sometext/;
$_ is used by default.
In reply to Re: Search Param Help
by Gangabass
in thread Help with Search String
by btobin0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |