in reply to Calling $function from $module
Does this help?
package fred; sub fred{ print "This is fred::fred; so good they named me twice!" };; package main; fred::fred;; This is fred::fred; so good they named me twice! $p= 'fred'; $s='fred';; &{ "$p\:\:$s" };; This is fred::fred; so good they named me twice! *{ "$p\:\:$s" }->();; This is fred::fred; so good they named me twice!
Anyone got any experience of this phone's predecessor?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Calling $function from $module
by Anonymous Monk on Aug 05, 2015 at 22:27 UTC | |
by BrowserUk (Patriarch) on Aug 05, 2015 at 22:40 UTC | |
by ikegami (Patriarch) on Aug 05, 2015 at 22:43 UTC | |
by BrowserUk (Patriarch) on Aug 05, 2015 at 23:23 UTC | |
by Anonymous Monk on Aug 05, 2015 at 22:57 UTC |