note
dsb
You're date variable is using / as the delimiter. As a result you aren't matching the pattern you think you are. You could just use a different delimiter for your pattern.
<code>
if ($_ = m%$dm%) {
#stuff
}
</code>
Or you could call <tt>quotemeta()</tt> on your variable.
<code>
my $dm = quotemeta($date);
</code>
<tt>quotemeta()</tt> will escape all non-word characters.
<P><b>UPDATE:</b> After reading [hv]'s reply, I agree with him. SOmething didn't seem right to me as I was replying...he caught it though :)
<div class="pmsig"><div class="pmsig-6762">
<P>
<HR color="lime">
<b>dsb</b><br>
<font size="-1">This <TT>@ISA my</TT> cool <TT>%SIG</TT></font>
</div></div>
383991
383991