in reply to Syntax question: Method call, where method name is calculated from an expression
use strict; use warnings; use 5.010; sub f { 'g' } sub g { say 'in g()' }; (bless {})->can(f())->();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Syntax question: Method call, where method name is calculated from an expression
by rovf (Priest) on Dec 04, 2009 at 15:48 UTC |