Mega Code Archive

 
Categories / Perl / Subroutine
 

Calling subroutines that are not defined before use

print "Using & and ():\n"; &definedAfterWithoutArguments();             # subroutine with no arguments defined after it is used sub definedAfterWithoutArguments {    print "definedAfterWithoutArguments\n"; }