in reply to Re: Hash of Regex
in thread Hash of Regex
This is the output, but what does it mean and why doesn't it work?my %dict = ( 'brown' => 'yellow', qr/int(\d+)/ => 'int', qr/float(\d+)/ => 'float', );
This looks more elegant than this.$VAR1 = { '(?-xism:int(\\d+))' => 'int', 'brown' => 'yellow', '(?-xism:float(\\d+))' => 'float' };
my %dict = ( 'brown' => 'yellow', 'int\(\d+\)' => 'int', 'float\(\d+\)' => 'float', );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Hash of Regex
by crashtest (Curate) on Apr 06, 2010 at 23:23 UTC |