more useful options | |
PerlMonks |
Re: Hash Key vs. Quantifier Ambiguity in Regex Contextby jarich (Curate) |
on Apr 01, 2004 at 00:08 UTC ( [id://341468]=note: print w/replies, xml ) | Need Help?? |
(2) You can see that Perl chooses (a) for /$x{1}/. If I want (b), is there a better way than @{[$x{1}]}[0]? Absolutely. Quote your hash key.
Hope this helps. jarich
In Section
Seekers of Perl Wisdom
|
|