programming-examples/perl/Subroutine/displays all the arguments.pl
2019-11-15 12:59:38 +01:00

10 lines
231 B
Raku

displayArguments( "A", "B", 2, 15, 73, 2.79 );
# output the subroutine arguments using special variable @_
sub displayArguments
{
# the following statement displays all the arguments
print "All arguments: @_\n";
}