D:\tmp>perl use warnings; use strict; sub out{ my sub this{my $n=9;print "\n$n"} } &this; __END__ Undefined subroutine &main::this called at - line 12.
This is perl 5, version 32, subversion 1 (v5.32.1) built for MSWin32-x +64-multi-t hread
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: issue 'my' sub cannot work
by LanX
in thread issue 'my' sub cannot work
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |