Argument "SCALAR" isn't numeric in subroutine entry at ./a.pl line 8. Parameter #1 ("test") to main::func1 was a 'scalar', which is not one of the allowed types: at ./a.pl line 8 main::func1(3) called at ./a.pl line 13