Given a simple subroutine:
sub q { print "q" };What is it that causes the following to output nothing?
eval \&q;While these others output as expected?
eval \q; eval \q(); eval \&q();
I've read about the ampersand and prototyping, but I'm not understanding this.
In reply to eval'ing coderef with ampersand by hbm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |