Mega Code Archive

 
Categories / Perl / Subroutine
 

Calling a sub routine with subroutine_name()

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