by adding a ';' after use strict. The error message is a bit misleading.
PS: Please use warnings as well. And you know that a subroutine inside another subroutine in perl is a closure? It might not always do what you expect from it (if you export a reference to it outside the enclosing subroutine).
Updated: Reworded the warning about closure
In reply to Re: subroutine inside subroutine
by jethro
in thread subroutine inside subroutine
by prashantpal84
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |