#!/usr/bin/perl use strict; my @array = (qr/^foo /, qr/bar$/); print "@array\n"; my %hash = map {$_, 1} @array; foreach (keys %hash) { print "$_\n"; }
In reply to Re: Assigning regex from arrays to hash keys
by pelagic
in thread Assigning regex from arrays to hash keys
by wilbur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |