[Israel.pm] typeglobs

Levenglick Dov-RM07994 dovl at freescale.com
Wed Jun 27 05:32:00 PDT 2007

OK, that explains that but not my initial question. Does anyone have an

Best Regards,
Dov Levenglick
DSP SoC System and Applications Engineer,
Network and Computing Systems Group
Freescale Semiconductor Israel
Tel. +972-9-952-2804
The information contained in this email is classified as:
[ ] Freescale General Business Information
[ ] Freescale Internal Use Only
[ ] Freescale Confidential Proprietary
[x] Personal Memorandum

-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On
Behalf Of Amir E. Aharoni
Sent: Wednesday, June 27, 2007 15:17
To: Perl in Israel
Subject: Re: [Israel.pm] typeglobs

> Can you elaborate? Why is opening into a scalar better than opening
> a file handle?

It is also mentioned in the chapter about IO in Damian's Perl Best
Practices (the Dog book.)

A lot of people still use it, because that's what all editions of the
Camel and Llama books say.

perlfunc and perlopentut give the filehandle way first and then
describe the scalar way in a bit confusing manner.

I have used Perl 5.6 for a long time wishing that i could use a scalar
as a filehandle before realizing that i can do it only when i read PBP
in 2006.

I did find typeglobs useful for a very few cases when using them to
play with variable scope improved readability.
Perl mailing list
Perl at perl.org.il

More information about the Perl mailing list