in reply to Re^2: Calling functions from different namespaces
in thread Calling functions from different namespaces
sub s1 { my $sub=shift; # get it! # you may want to add checks => perldoc -f ref. print "s1"; $sub->(); # execute it! }
Indeed they gave you a good suggestion: this is the best way to do what you say you want to do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Calling functions from different namespaces
by ikegami (Patriarch) on Jan 18, 2006 at 14:36 UTC | |
by Anonymous Monk on Jan 19, 2006 at 01:08 UTC | |
by blazar (Canon) on Jan 19, 2006 at 08:38 UTC | |
by Anonymous Monk on Jan 19, 2006 at 22:03 UTC | |
|
Re^4: Calling functions from different namespaces
by Anonymous Monk on Jan 19, 2006 at 01:12 UTC | |
by blazar (Canon) on Jan 19, 2006 at 08:27 UTC | |
by Anonymous Monk on Jan 19, 2006 at 22:04 UTC |