Re: Dispatch table using Tie::RegexpHash

2010-04-29 Thread Uri Guttman
> "SB" == Steve Bertrand writes: SB> On 2010.04.29 23:23, Uri Guttman wrote: >>> "SB" == Steve Bertrand writes: >> SB> use Tie::RegexpHash; >> SB> my $number = qr/^\d+$/; SB> my $alpha = qr/^\w+$/; >> SB> tie my %dt, 'Tie::RegexpHash'; >> >> that sounds like

Re: Dispatch table using Tie::RegexpHash

2010-04-29 Thread Steve Bertrand
On 2010.04.29 23:23, Uri Guttman wrote: >> "SB" == Steve Bertrand writes: > > SB> use Tie::RegexpHash; > > SB> my $number = qr/^\d+$/; > SB> my $alpha = qr/^\w+$/; > > SB> tie my %dt, 'Tie::RegexpHash'; > > that sounds like an insane idea for a module. but that is IMO. you can >

Re: Dispatch table using Tie::RegexpHash

2010-04-29 Thread Uri Guttman
> "SB" == Steve Bertrand writes: SB> use Tie::RegexpHash; SB> my $number = qr/^\d+$/; SB> my $alpha = qr/^\w+$/; SB> tie my %dt, 'Tie::RegexpHash'; that sounds like an insane idea for a module. but that is IMO. you can do this with much less effort with a list of regexes paired

Dispatch table using Tie::RegexpHash

2010-04-29 Thread Steve Bertrand
Hi all, Given the threads on dispatch tables recently, I was writing a bit of a whitepaper on how dts are useful for consolidating code. I've run into an issue that I've been working on for some time (while also performing my job function ;), and I'm hoping that extra eyeballs will notice the pro