perlquestion
BooK
<P><small>This is maybe not the best place to ask this question... Anyway,</small></P>
<P>I noticed a big difference between perl 5.005_03 and 5.6.0...
<tt>glob</tt> behaves quite differently under <tt>-T</tt></P>
<P>Try this one-liner:
<code>
C:\>perl5.exe -Te "print join', ',glob'*.txt'"
Insecure dependency in glob while running with -T switch at -e line 1.
</code>
according to [perlsec], this is perfectly normal, and I don't complain...
After all, in Perl under 5.6 this was done thanks to a subshell.</P>
<P>But now try this one:</P>
<code>
C:\>perl56.exe -Te "print join', ',glob'*.txt'"
file1.txt, file2.txt, file3.txt
</code>
Well, in Perl 5.6, it is done with <tt>File::Glob</tt>, so why not.</P>
<P>But if you check in [id://31583|Amelia] (page 727), you'll see that
it's not the way <tt>glob</tt> should behave. You'll also notice <tt>glob</tt>
is not in the list of taintedness examples page 560...</P>
<P>So, is this a bug in Perl 5.6? In [id://31583|Amelia]? I tried this with
[http://www.activestate.com/Products/ActivePerl/|ActivePerl] 522 and 620,
and with Perl 5.005_03 under FreeBSD and Perl 5.6.0 under Linux.</P>