Re: sub alias name

This is a discussion on Re: sub alias name within the Perl forums in Programming Languages category; > Message du 27/08/08 21:21 > De : "Raja Vadlamudi" > A : "Perl Beginners" > Copie Ã* : > Objet : Re: sub alias name > > Or you might just want to use typeglob for only sub-routine. > > *real_long_fund = \& really_long_function_name_i_do_not_like_to_type; > or use an alias to the alias: *real_long_fund = *really_long_function_name_i_do_not_like_to_type; Regards, Jeff. Créez votre adresse électronique prenom.nom@laposte.net 1 Go d'espace de stockage, anti-spam et anti-virus intégrés....

Go Back   Application Development Forum > Programming Languages > Perl

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-28-2008, 12:47 AM
Jeff Pang
Guest
 
Default Re: sub alias name


> Message du 27/08/08 21:21
> De : "Raja Vadlamudi"
> A : "Perl Beginners"
> Copie Ã* :
> Objet : Re: sub alias name
>
> Or you might just want to use typeglob for only sub-routine.
>
> *real_long_fund = \& really_long_function_name_i_do_not_like_to_type;
>



or use an alias to the alias:

*real_long_fund = *really_long_function_name_i_do_not_like_to_type;


Regards,
Jeff.

Créez votre adresse électronique prenom.nom@laposte.net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.

Reply With Quote
  #2  
Old 08-28-2008, 01:55 PM
Dr.Ruud
Guest
 
Default Re: sub alias name

Jeff Pang wrote:
> Raja Vadlamudi:
>> John W. Krahn:


>>> Using a typeglob copy: [...]
>>> *real_long_func = *really_long_function_name_i_do_not_like_to_type;

>>
>> Or you might just want to use typeglob for only sub-routine.
>> *real_long_fund = \& really_long_function_name_i_do_not_like_to_type;

>
> or use an alias to the alias:
> *real_long_fund = *really_long_function_name_i_do_not_like_to_type;


You are echoing what John wrote. Raja's reply was a specialisation of
that.

--
Affijn, Ruud

"Gewoon is een tijger."

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:48 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.