The problem is that Tie::RegexHash is a tied module, meaning that you need to use the tied interface. Try:
use Tie::RegexpHash; my $rehash = tie my %rgxhash, 'Tie::RegexpHash'; $rehash->add( qr/abc/, "abc" ); $rehash->add( qr/def/, "def" );
In reply to Re: Problem with Tie::RegexpHash
by jryan
in thread Problem with Tie::RegexpHash
by sch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |