programming-examples/perl/Subroutine/Calling a sub routine with &.pl
2019-11-15 12:59:38 +01:00

10 lines
141 B
Perl

sub my_subroutine {
print "In a subroutine.\n";
}
print "Before subroutine.\n";
&my_subroutine;
print "After subroutine.\n";