programming-examples/perl/Subroutine/Calling subroutines that are not defined before use.pl
2019-11-15 12:59:38 +01:00

10 lines
219 B
Perl

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