You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
displayArguments( "A", "B", 2, 15, 73, 2.79 );
|
|
|
|
# output the subroutine arguments using special variable @_
|
|
sub displayArguments
|
|
{
|
|
# the following loop displays each individual argument
|
|
for ( $i = 0; $i < @_; ++$i ) {
|
|
print "Argument $i: $_[ $i ]\n";
|
|
}
|
|
|
|
} |