Hello list,

I was looking into the best way (and for what reasons) you'd create an "alais" function.

For example:

If you want foo() and bar() to be able to be used interchangeably would it be best to do:

 sub foo { return "Howdy $_[0]"; }
 sub bar { return foo(@_); }

or do a typeglob:

 sub foo { return "Howdy $_[0]"; }
 *bar = \&foo;

or another way ??

TIA

Lee.M - JupiterHost.Net

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to