davg has asked for the wisdom of the Perl Monks concerning the following question:
package ECHO_MODULE; use Exporter (); @ISA = qw(Exporter); @EXPORT = qw($say_hi $say_bye); sub say_hi {print "hi\n";} sub say_bye {print "bye\n"}
----------------------- print "enter subroutine name: "; $subname = <STDIN>; $subname() ????
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: variable subroutine call
by meraxes (Friar) on Dec 12, 2007 at 01:15 UTC | |
by shmem (Chancellor) on Dec 12, 2007 at 01:27 UTC | |
by meraxes (Friar) on Dec 12, 2007 at 01:33 UTC | |
by shmem (Chancellor) on Dec 12, 2007 at 01:40 UTC | |
by meraxes (Friar) on Dec 12, 2007 at 01:49 UTC | |
by wfsp (Abbot) on Dec 12, 2007 at 08:46 UTC | |
Re: variable subroutine call
by pfaut (Priest) on Dec 12, 2007 at 01:24 UTC | |
Re: variable subroutine call
by shmem (Chancellor) on Dec 12, 2007 at 01:17 UTC | |
by chromatic (Archbishop) on Dec 12, 2007 at 03:16 UTC |