in reply to Surprising quirk of method call parser
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Surprising quirk of method call parser
by kstar (Novice) on Nov 04, 2010 at 17:28 UTC |