in reply to Assigning regex from arrays to hash keys
use strict; use warnings; use Data::Dumper; my %hash; my @value = (qr/^foo /, qr/bar$/); my @key = qw(foo bar); @hash{@key} = @value; print Dumper \%hash;
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Assigning regex from arrays to hash keys
by wilbur (Novice) on Apr 28, 2004 at 21:29 UTC |