programming-examples/perl/Subroutine/Calling a sub routine with 'subroutine_name();'.pl

10 lines
142 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";