... I expected omitting the redundant quotes to produce "bareword" errors under strict
use strict; use warnings; use Data::Dump qw/pp dd/; my %hash = ( accents => 'utf-8', accounting => 'money', bank => 'money'. bank2 => 'money'. bank3 => 'money', perls => 'perl' ); dd \%hash;
but funnily the auto-quoting effect of the fat comma => has higher precedence than the concat operator. (?)
{ accents => "utf-8", accounting => "money", bank => "moneybank2", moneybank3 => "money", perls => "perl", }
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re: How to validate %hash = ( 'a' => 'b', ...);
by LanX
in thread How to validate %hash = ( 'a' => 'b', ...);
by RCH
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |