in reply to Can't use string blah as an ARRAY ref
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
|
|---|