/usr/src/perl/pod/perlfaq5/Is_there_a_leak_bug_in_glob_.pod

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 unpredicatable behavior. It's best therefore to use glob only in list context.