note
davorg
<p>There <i>is</i> a difference, but it's a bit subtle.</p>
<p>With [cpan://Tie::RegexpHash] you set your hash keys to regular expressions and then look them up using fixed strings.</p>
<p>With [cpan://Tie::Hash::Regex] you set the keys to fixed strings and then look them up using regular expressions.</p>
<p>In this case, it looks like [cpan://Tie::RegexpHash] is the way to go.</p>
-- <br>
<<a href="http://www.dave.org.uk">http://www.dave.org.uk</a>>
<p><i>"The first rule of Perl club is you do not talk about
Perl club."</i><br> -- Chip Salzenberg</p>
211023
211030