Re: sub alias name

2008-08-28 Thread Dr.Ruud
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;

Re: sub alias name

2008-08-27 Thread Jeff Pang
> 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

Re: sub alias name

2008-08-27 Thread John W. Krahn
[ Please do not top-post. TIA ] Raja Vadlamudi wrote: On 8/27/08 3:02 PM, "John W. Krahn" <[EMAIL PROTECTED]> wrote: Ryan wrote: sub really_long_function_name_i_do_not_like_to_type {return 'data';} can I create some kind of alias, like real_long_func ? Using a typeglob copy: $ perl -le

Re: sub alias name

2008-08-27 Thread Raja Vadlamudi
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; On 8/27/08 3:02 PM, "John W. Krahn" <[EMAIL PROTECTED]> wrote: > Ryan wrote: >> given: >> >> sub really_long_function_name_i_do_not_like_to_type {return 'data';} >

Re: sub alias name

2008-08-27 Thread John W. Krahn
Ryan wrote: given: sub really_long_function_name_i_do_not_like_to_type {return 'data';} can I create some kind of alias, like real_long_func ? how? Using a typeglob copy: $ perl -le' sub really_long_function_name_i_do_not_like_to_type { return q/data/ } print really_long_function_name_i_do_

Re: sub alias name

2008-08-27 Thread Rob Coops
Of course you can... sub really_long_function_name_i_do_not_like_to_type {return 'data';} sub short_func { return really_long_function_name_i_do_not_like_to_type(); } Should do the trick, Rob On Wed, Aug 27, 2008 at 8:44 PM, Ryan <[EMAIL PROTECTED]> wrote: > given: > > sub really_long_functio