wilbur has asked for the wisdom of the Perl Monks concerning the following question:
I am using tie::RegexpHash and that works if I do it manually %hash{/^foo/} but I need to get it to work from an array.@array = (qr/^foo /, qr/bar$/); my %hash(@array) = ()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Assigning regex from arrays to hash keys
by jeffa (Bishop) on Apr 28, 2004 at 20:57 UTC | |
by wilbur (Novice) on Apr 28, 2004 at 21:29 UTC | |
|
Re: Assigning regex from arrays to hash keys
by dave_the_m (Monsignor) on Apr 28, 2004 at 21:28 UTC | |
|
Re: Assigning regex from arrays to hash keys
by revdiablo (Prior) on Apr 28, 2004 at 21:43 UTC | |
|
Re: Assigning regex from arrays to hash keys
by pelagic (Priest) on Apr 29, 2004 at 06:28 UTC |