|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: Surprising quirk of method call parserby talexb (Canon) |
| on Nov 04, 2010 at 15:47 UTC ( #869491=note: print w/ replies, xml ) | Need Help?? |
|
In Perl, braces are used to force the parser to evaluate those items first. You've solved the issue by putting braces around your hash access, so this means the parser was reading your code left to right, $obj->$meth followed by {a}, which it presumably hated.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||