programming-examples/perl/Subroutine/nested subroutine.pl
2019-11-15 12:59:38 +01:00

14 lines
163 B
Perl

sub outer
{
my $s = "Inside the inner subroutine.\n";
sub inner
{
my $s2 = $s;
print $s2;
}
inner();
}
outer();