in reply to Re^3: Calling $function from $module
in thread Calling $function from $module
He saying you could have used
( $p.'::'.$s )->()
It's the alternate form of
&{ $p.'::'.$s }()
The following should be avoided since it inherits the parent's @_ rather than creating a new one:
&{ $p.'::'.$s }
I recommend against both of your solutions. The first (&{ $p.'::'.$s }) is wrong and the second (*{ $p.'::'.$s }->()) is weird.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Calling $function from $module
by BrowserUk (Patriarch) on Aug 05, 2015 at 23:23 UTC |