programming-examples/perl/Subroutine/Subroutine with arguments defined before it is used.pl
2019-11-15 12:59:38 +01:00

9 lines
212 B
Perl

sub definedBeforeWithArguments
{
print "definedBeforeWithArguments: @_\n";
}
# calling subroutines that are defined before use
print "Using & and ():\n";
&definedBeforeWithArguments( 1, 2, 3 );