programming-examples/perl/Subroutine/Calling a sub routine with 'subroutine_name();'.pl
2019-11-15 12:59:38 +01:00

10 lines
142 B
Perl

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