in reply to issue 'my' sub cannot work
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: issue 'my' sub cannot work
by Anonymous Monk on Jan 03, 2022 at 16:06 UTC |