Hi all,

While writing some tests, I ran into something that took me quite a
while to troubleshoot. Although I figured out the problem, I don't
understand why the problem is occurring.

Can someone point out the importance of the brackets in which '2'
prints, but '1' does not? I've always thought that the brackets could be
omitted:

print "1" if ref $href  =~ /HASH/;
print "2" if ref($href) =~ /HASH/;

Steve

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to