use strict; use warnings; use 5.010; sub f { 'g' } sub g { say 'in g()' }; (bless {})->can(f())->();
In reply to Re: Syntax question: Method call, where method name is calculated from an expression
by moritz
in thread Syntax question: Method call, where method name is calculated from an expression
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |