SPUG: Variable in subroutines to check number of args?

John Costello cos at indeterminate.net
Wed Jul 12 14:13:06 PDT 2006


On Wed, 12 Jul 2006, Dan Ebert wrote:
> I don't know if there is a variable, but couldn't you just do "scalar @_"
> (before @_ is modified by any shifts, etc.?

*cough*

Well, now that I know about "scalar @_", yes, I could.  Many thanks to Dan 
and David Dyck (the latter wrote me offlist).  

I always thought 'scalar' and 'list' referred to the context.  I had no 
idea that there was a function named 'scalar'.  

Back to the unicode mines with me.

John



More information about the spug-list mailing list