programming-examples/perl/Subroutine/Calling a sub routine with &.pl

10 lines
141 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
sub my_subroutine {
print "In a subroutine.\n";
}
print "Before subroutine.\n";
&my_subroutine;
print "After subroutine.\n";