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)
In reply to Re: Assigning regex from arrays to hash keys
by jeffa
in thread Assigning regex from arrays to hash keys
by wilbur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |