The difference is that you have parens following the sub name, which parses as a subroutine call. You can't create a reference to a sub invocation with particular arguments, you can only create a reference to a sub. If you need to set values in the sub, you'll need closures.
In reply to Re (3): Strange SIGNAL HANDLER behavior...
by VSarkiss
in thread Strange SIGNAL HANDLER behavior...
by Clownburner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |