The difference between the two is that in the first example, you are creating an anonymous subroutine and not saving a reference to it so you'll never be able to access it. The second example is running a named subroutine, which is perfectly legitimate.
In reply to Re: Ternary Operator with Subroutine
by AR
in thread Ternary Operator with Subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |