A less approximate version of Tie::Hash::Approx
David Cantrell
david at cantrell.org.uk
Thu Mar 13 16:25:10 GMT 2008
On Wed, Mar 12, 2008 at 03:15:46PM +0000, Dave Cross wrote:
> Quoting David Cantrell <david at cantrell.org.uk>:
> >I need a module that will let me tie a hash so that if I try to FETCH a
> >value for a key that exists, then it'll return the appropriate value,
> >but will also let me fetch values for keys that match certain rules.
> Tie::RegexpHash perhaps.
> http://search.cpan.org/dist/Tie-RegexpHash/
> Then you only need to write regexes to match all ints, all floats, etc.
Perfect, thanks!
--
David Cantrell | Cake Smuggler Extraordinaire
Longum iter est per praecepta, breve et efficax per exempla.
More information about the london.pm
mailing list