develooper Front page | perl.perl5.porters | Postings from November 2010

Fwd: [rt.cpan.org #63073] [perl #79302] Re: Bleadperl 9aa8b00 breaks ABELTJE/Test-Smoke-1.44

From:
Father Chrysostomos
Date:
November 21, 2010 12:56
Subject:
Fwd: [rt.cpan.org #63073] [perl #79302] Re: Bleadperl 9aa8b00 breaks ABELTJE/Test-Smoke-1.44
Message ID:
62642697-3433-457D-993F-CA859611A8A6@cpan.org
Begin forwarded message:

> From: Father Chrysostomos <sprout@cpan.org>
> Date: November 21, 2010 12:50:21 PM PST
> To: Andreas J. Koenig <andreas.koenig.7os6VVqR franz.ak.mind.de>
> Cc: perlbug perl.org, abeltje cpan.org, bug-Test-Smoke rt.cpan.org
> Subject: [rt.cpan.org #63073] [perl #79302] Re: Bleadperl 9aa8b00 breaks ABELTJE/Test-Smoke-1.44
> 
> 
> On Nov 16, 2010, at 9:15 PM, Andreas J. Koenig wrote:
> 
>> What jumps into the eye is that in the testscript t/sysinfo_proc.t the
>> use of tie() happens before the package is parsed.
> 
> What jumps into *my* eye is that it says tie $handle and $handle is a scalar. It should be tie *$handle.
> 
> tie $handle used to tie a handle if a typeglob had been assigned to $handle. I consider this change to be a bug fix (but feel free to remonstrate if you disagree).
> 
> The main problem here in 5.12 and earlier is that tied $scalar cannot reliably be used to see whether a scalar is tied, because a typeglob might have been assigned to or returned from it. The same happens with untie $scalar, which may or may not work, depending on what was last assigned. I fixed those and also made tie() match. This means that tie $scalar will always tie a scalar, and, if the scalar has been used before, you don’t have to check its value to see whether you need to undefine it to be able to tie it.
> 




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