in reply to Strict, strings and subroutines
Getting into the gross, this does something slightly
different from the above solutions. Though called like a
function, it will actually do a method search for it:
__PACKAGE__->can("do_$type")->();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re (tilly) 1: Strict, strings and subroutines
by merlyn (Sage) on Oct 10, 2001 at 18:01 UTC | |
by jeroenes (Priest) on Oct 10, 2001 at 18:44 UTC | |
by merlyn (Sage) on Oct 10, 2001 at 19:45 UTC | |
by tilly (Archbishop) on Oct 10, 2001 at 18:57 UTC | |
by gbarr (Monk) on Oct 10, 2001 at 19:12 UTC | |
by tilly (Archbishop) on Oct 10, 2001 at 19:24 UTC | |
by gbarr (Monk) on Oct 10, 2001 at 20:19 UTC | |
by gbarr (Monk) on Oct 10, 2001 at 19:16 UTC | |
by $code or die (Deacon) on Oct 10, 2001 at 22:03 UTC | |
by tilly (Archbishop) on Oct 10, 2001 at 22:22 UTC |
In Section
Seekers of Perl Wisdom