You forgot to put the parentheses on the end of function(). Perl started parsing function( / 4; and failed when it ran out of file while parsing the regular expression 4;. You could also have used a prototype on function but those are pretty much always a bad idea.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In reply to Re: Unexpected parser error
by diotalevi
in thread Unexpected parser error
by saintmike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |