develooper Front page | perl.perl6.language | Postings from April 2008

slurpy scalar parameter?

Thread Next
From:
John M. Dlugosz
Date:
April 11, 2008 22:07
Subject:
slurpy scalar parameter?
What is the difference between:

 sub head(*$head, *@tail)

and

 sub head($head?, *@tail)

?

The example calls it with
 head( 1,2,3,4 );

I'm thinking that there are differences that are not apparent in this example.

--John

Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About