On 27/10/2007, via RT Father Chrysostomos <perlbug-followup@perl.org> wrote:
> I can call a method on the result of an expression with indirect
> object syntax, giving it a hash ref, like this:
>
> method { some(complex() + 'expression' } { foo => 'bar' }
>
> But, if I change 'foo' to $foo, I get a syntax error message:
> syntax error at -e line 1, near "} { "
I think that's one of those cases where one needs to add a + in front
of the hashref to disambiguate it. Not much possible to change it
actually...
Thread Previous