sub introduces a subroutine. Some earlier versions of perl would (unintentionally) abort on bad syntax like you have there, but it should be fixed in current versions.
In reply to Re: weird error when using substring function
by ysth
in thread weird error when using substring function
by smanicka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |