I suspect your difficulty is in not escaping the '$', which has special meaning:
if ($value =~ /\$/) { # ... } [download]
After Compline,Zaxo
In reply to Re: if contains by Zaxo in thread if contains by nasa