----- Original Message -----
From: "Doug Hunt" <[EMAIL PROTECTED]>
To: "Sisyphus" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Tuesday, April 08, 2008 12:58 AM
Subject: Re: [Perldl] PDL make test problems under perl 5.10
> Rob: Thats interesting!
>
> I don't know how to fix this problem, but I'm not so worried about it for
> my scripts if all I have to do is replace '-w' with 'use warnings'.
>
> I would be nice to get rid of all the chatter in 'make test' from the PDL
> build.
>
I guess, at the beginning of every test script we could:
BEGIN{$^W = 0;};
But, apart from the tediousness of doing that, we probably don't want to
turn global warnings off. (Running 'make test' for any module apparently
turns on $^W, and I assume that happens for good reasons.)
The other thing we could do (equally tedious) is to ensure that $PDL::SHARE
is mentioned more than once by placing, in every test script, something
like:
if(defined($PDL::SHARE)){}
> Two observations:
>
> 1) 'perl_get_sv' I can only find in very old perl documentation. In more
> recent perlguts, it seems to have been replaced by 'get_sv'. Your test
> script works currently with both 'perl_get_sv' and 'get_sv'. It gives the
> same warning with both, though--PDL may want to consider changing
> perl_get_sv to get_sv.
Yes - probably best to use get_sv(), which is what I've done in the perlbug
report [perl #52572] I've just sent.
I'll post back once I've found out whether the problem is going to be fixed
in the perl source, or has to be fixed from within the PDL source.
>
> 2) PDL::SHARE seems pretty important--see perldoc PDL::API.
Yep :-)
Cheers,
Rob
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl