murugu has asked for the wisdom of the Perl Monks concerning the following question:
Hi Esteemed Monks,
Please suggest me what is the real use of typeglob. I read it somewhere that they are used to create 'alias' for variables and also used in passing filehandles to subroutines as arguments. Kindly suggest me with any practical example depicting the use of typeglobs.
As always million thanks in advance.....
Regards,
Murugesan Kandasamy.
Update: Sorry monks... My intention was to ask what are all the advantages of using typeglobs. I already know the examples given by ikegami(i.e use of typeglob such as passing filehandles, aliasing variables).... sorry for the way i have written my question.
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Use of Typeglob
by ikegami (Patriarch) on Aug 09, 2005 at 14:00 UTC | |
|
Re: Use of Typeglob
by ikegami (Patriarch) on Aug 09, 2005 at 14:40 UTC | |
by ysth (Canon) on Aug 11, 2005 at 09:50 UTC | |
|
Re: Use of Typeglob
by Tanktalus (Canon) on Aug 09, 2005 at 14:45 UTC | |
|
Re: Use of Typeglob
by dsb (Chaplain) on Aug 10, 2005 at 02:29 UTC | |
|
Re: Use of Typeglob
by Transient (Hermit) on Aug 09, 2005 at 14:00 UTC | |
|
Re: Use of Typeglob
by BrowserUk (Patriarch) on Aug 09, 2005 at 15:01 UTC |