This message is one of several periodic postings to DevShed's Perl Forum intended to make it easier for Perl programmers to find answers to common questions. The core of this message represents an excerpt from the documentation provided with every Standard Distribution of Perl.

---------------------------------------------
Is there a leak/bug in glob()?

Due to the current implementation on some operating systems, when you use
the glob() function or its angle-bracket alias in a scalar context, you
may cause a leak and/or unpredictable behavior. It's best therefore to use
glob() only in list context.
---------------------------------------------

Documents such as this have been called "Answers to Frequently Asked Questions" or FAQ for short. They serve to reduce the volume of redundant traffic on this bulletin board by providing quality answers to questions that keep comming up. If you find errors or other problems with these postings please send corrections or comments to the posting email address.


------------------
Written by Anonym0us, inspired by the original PerlFAQ Server.