\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.
In reply to Re: eval'ing coderef with ampersand
by jwkrahn
in thread eval'ing coderef with ampersand
by hbm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |