programming-examples/perl/Subroutine/nested subroutine.pl

14 lines
163 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
sub outer
{
my $s = "Inside the inner subroutine.\n";
sub inner
{
my $s2 = $s;
print $s2;
}
inner();
}
outer();