in reply to eval'ing coderef with ampersand
\q, \q() and \&q() first call the subroutine and then take a reference to its return value while \&q takes a reference to the subroutine itself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: eval'ing coderef with ampersand
by hbm (Hermit) on Sep 07, 2010 at 13:13 UTC | |
by ikegami (Patriarch) on Sep 07, 2010 at 17:45 UTC |