Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use strict; sub out{ my sub this{my $n=9;print "\n$n"} my $i=7; my $j=3 } &this; 9
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: issue 'my' sub cannot work
by LanX (Saint) on Jan 03, 2022 at 13:09 UTC | |
by Anonymous Monk on Jan 03, 2022 at 16:06 UTC | |
|
Re: issue 'my' sub cannot work
by Anonymous Monk on Jan 03, 2022 at 13:24 UTC | |
by LanX (Saint) on Jan 03, 2022 at 13:48 UTC | |
by Anonymous Monk on Jan 04, 2022 at 16:16 UTC |