You should also get an error message that says something like "Too many arguments for main::test ..." because you are using a prototype that says your subroutine will accept NO arguments!
See also: FMTEYEWTK on Prototypes in Perl
In reply to Re: Can't use string blah as an ARRAY ref
by jwkrahn
in thread Can't use string blah as an ARRAY ref
by kingram
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |