is called an indirect method call. Like omitting parens around function arguments, some people find this visually appealing, but it confuses Perl at times. I play it safe and use direct method calls.method $class_or_object ARGS
$class_or_object->method(ARGS)
In reply to Re: new <class> or <class>->new()?
by ikegami
in thread new <class> or <class>->new()?
by LesleyB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |