in reply to matching quotes

$str="ab:cd:ef:gh";
print $_."\n";
while (<>) {
$find=$_;
$temp=$str=~/$find+/;
# this line should return null if I type abc (because
# string does not contain abc, it contains ab:c) but it
# returns 1 even if I type aXYZ
# it returns null only when none of the characters I've
# typed are in the string...)
# why is this happening?
if ($temp==null) {$temp="null";}
print $temp."\n";
}
plz e-mail answer to igor@photomania.net