From: Peter Behroozi [EMAIL PROTECTED]
> Has anyone considered a syntax for allowing
> subroutines to have many different names for
> the same argument?  For example, in CGI.pm, many
> methods support the "-override" parameter but
> can also accept the alias of "-force":

Yes. See the thread starting at
http:[EMAIL PROTECTED]/msg09551.html .  The
end result was that Damian liked the idea and leans towards a syntax like
this:

  sub load_data (
     $filename_tainted is named('filename'),
     $version_input is named('version','ver') //= 1)
     {...}

-Miko

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .


Reply via email to