develooper Front page | perl.perl5.porters | Postings from April 2008

Re: [perl #51370] Clearing magic (was: [#perl 51370] length($@)>0 for empty $@ if utf8 is in use)

Thread Previous | Thread Next
From:
Bram
Date:
April 27, 2008 15:56
Subject:
Re: [perl #51370] Clearing magic (was: [#perl 51370] length($@)>0 for empty $@ if utf8 is in use)
Message ID:
op.uaakomh75efjgi@bram.telenet.be
On Sun, 27 Apr 2008 23:38:30 +0200, "Rafael Garcia-Suarez"  
<rgarciasuarez@gmail.com> wrote:

> Might be correct. Do all tests pass including the new ones you'll
> probably have written for this bug ? :)

Writing tests is another issue...

What should be tested? That length $@ is empty? (which was the problem in  
the bug report)
Or would a proper test be to check that only the SvPV flag is set (and  
that there is no magic, no UTF8, ...) at the start of an eval/after a  
successfull eval? (If so - how does one tests the flags of the SV in the  
test scripts? any examples?)


Kind regards,

Bram

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