You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Kenneth Lee <ke...@alfacomtech.com> on 2000/06/23 10:43:00 UTC

[XOT] doesn't it supported?

(XOT: eXtremely OT)

perl complains about variable method calls ($obj->$meth) when I move from 
5.6.0 back to 5.00503, it says  syntax error near "$meth".

i think this is supported at the very beginning. did i missed sth?

kenneth


Re: [XOT] doesn't it supported?

Posted by Matt Sergeant <ma...@sergeant.org>.
On Fri, 23 Jun 2000, Kenneth Lee wrote:

> (XOT: eXtremely OT)
> 
> perl complains about variable method calls ($obj->$meth) when I move from 
> 5.6.0 back to 5.00503, it says  syntax error near "$meth".
> 
> i think this is supported at the very beginning. did i missed sth?

Yes.

$obj->$meth();

There were parser fixes that allowed the former syntax in 5.6, but if you
want it to work in 5.005 then you need the brackets.

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org