in reply to Re^2: $obj->method v.s. $obj->method()
in thread $obj->method v.s. $obj->method()
$obj->method will work on 5.004 at least, and I think on all 5.xxx versions.
As I recall, this feature was broken in a specific version of perl, caused by a wrong commit I think. But I couldn't locate something related to that now with a little Googling.
$foobj->method qw(b a) ;Ah, that's interesting :) Recent perl (5.10 & 5.8.8) parses that as:
it looks like qw() has some magic in it in recent versionsC:\Users\burak>perl -MO=Deparse -e "$foobj->method qw(b a) ;" $foobj->method('b', 'a'); -e syntax OK [schultz]$ perl -MO=Deparse -e '$foobj->method qw(b a) ;' $foobj->method('b', 'a'); -e syntax OK [schultz]$
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: $obj->method v.s. $obj->method()
by Your Mother (Archbishop) on May 09, 2009 at 16:41 UTC | |
by Burak (Chaplain) on May 09, 2009 at 17:03 UTC | |
by AnomalousMonk (Archbishop) on May 09, 2009 at 18:40 UTC | |
by Burak (Chaplain) on May 09, 2009 at 18:53 UTC | |
by AnomalousMonk (Archbishop) on May 09, 2009 at 20:31 UTC | |
| |
|
Re^4: $obj->method v.s. $obj->method()
by JavaFan (Canon) on May 09, 2009 at 18:38 UTC | |
by Burak (Chaplain) on May 09, 2009 at 18:45 UTC |