Michael G Schwern wrote:
[...]
Funny that while doing a sanity check I did:

% perl-5.8.2 -le 'my $mod = "threads"; require $mod'
threads did not return a true value at -e line 1.

it actually read the directory 'threads' as a file. What would happen if the directory's contents happened to have a true value at the end? will require be sucessful? Shouldn't it test that the file it's going to read is actually a file?


There was just a big umm, thread on this earlier, but I don't think it
was noticed that require() effected.  Yeah, it probably should check that
its a file.

Do you think it's worth reporting to p5p as a bug?


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Reply via email to