On 2014-03-01 06:13, Bill McCormick wrote:

   $found = $$_ =~ m|$project|;

Alternative:

$found = ( index( $project, $$_ ) >= 0 );

or rather use:

$found = $project =~ /\b\Q$$_\E\b/;

Always add escaping and anchors, or you will match the unmatchable.

--
Ruud



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to