programming-examples/perl/Subroutine/Calling subroutines that are not defined before use.pl

10 lines
219 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
print "Using & and ():\n";
&definedAfterWithoutArguments();
# subroutine with no arguments defined after it is used
sub definedAfterWithoutArguments
{
print "definedAfterWithoutArguments\n";
}