develooper Front page | perl.perl5.porters | Postings from June 2012

Re: NWCLARK TPF grant report #41

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
June 20, 2012 07:46
Subject:
Re: NWCLARK TPF grant report #41
Message ID:
20120620144611.GW9069@plum.flirble.org
On Wed, Jun 20, 2012 at 07:39:34AM -0700, Tim Jenness wrote:
> On Wed, Jun 20, 2012 at 7:36 AM, Nicholas Clark <nick@ccl4.org> wrote:
> 
> > Fixing this as-is to File::stat::stat() won't help, as tests have
> > subsequently been added earlier in the script that trigger the autoloading
> > of Symbol by File::stat (commit 83716b1ec25b41f2 in Feb 2002). Moving the
> > tests earlier won't help now that the test uses File::Temp, as *that*
> > unconditionally loads Symbol.
> >
> 
> File::Temp is not meant to load Symbol. The code is
> 
> 160     require Symbol if $] < 5.006;
> 
> so is that code broken?

No. But it uses IO::Seekable which uses IO::Handle which uses Symbol,
so in the test script, it was the use line which was indirectly causing
Symbol to be loaded.

Sorry, should have been clearer.

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About