![]() |
|
Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: pattern match on entire fileby trantor (Chaplain) |
on Nov 14, 2001 at 18:31 UTC ( #125310=note: print w/replies, xml ) | Need Help?? |
$temp =~ /$tempName/s; This searches for the string contained in $tempName in $temp, in multiline mode. It is not a problem if $tempName contains metacharacters because it will be interpolated only once. if ($temp eq '') This checks the contents of $temp, not the result of the pattern match! You should have now enough hints to go on :-) -- TMTOWTDI
In Section
Seekers of Perl Wisdom
|
|