FAQ

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

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 5 | next ›
Discussion Overview
groupbeginners @
categoriesperl
postedMar 1, '14 at 5:13a
activeMar 1, '14 at 3:26p
posts5
users4
websiteperl.org

People

Translate

site design / logo © 2021 Grokbase