I always thought function $foo $bar is another notation for $foo->function($bar)
Ah yes. Indirect method call. It can cause headaches, so I don't use it. If a function or op with the same name as the method exists in the current namespace, it's not parsed as an indirect method call. Since print is an op, print $obj ... will never be an indirect method call, and it can't be used to solve the OP's problem.
In reply to Re^3: prototypes for dual-file handle print?
by ikegami
in thread prototypes for dual-file handle print?
by iaw4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |