... and just as an addendum to jwkrahn's reply, prototyping is not used in and has no bearing on the behavior of any of the OPed statements.
Update: This may also throw some light on what is happening:
>perl -wMstrict -le "sub S { print 's' } print '[', eval \S, ']'; print $@; " s [] Undefined subroutine &main::SCALAR called at (eval 1) line 1.
In reply to Re: eval'ing coderef with ampersand
by AnomalousMonk
in thread eval'ing coderef with ampersand
by hbm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |