https://bugzilla.redhat.com/show_bug.cgi?id=834226

            Bug ID: 834226
        QA Contact: [email protected]
          Severity: high
               URL: https://rt.perl.org/rt3/Public/Bug/Display.html?id=113
                    730
           Version: 16
          Priority: unspecified
                CC: [email protected], [email protected],
                    [email protected], [email protected], [email protected],
                    [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
          Assignee: [email protected]
           Summary: `do' does not clean $@ on success sometimes
        Regression: ---
      Story Points: ---
    Classification: Fedora
                OS: Unspecified
          Reporter: [email protected]
              Type: Bug
     Documentation: ---
          Hardware: Unspecified
        Mount Type: ---
            Status: ASSIGNED
         Component: perl
           Product: Fedora

The `eval' and `do' functions should clear $@ variable on success. However this
does not happen always:

eval { die "shouldn't see this\n" };
do 'no such file';
warn $@ if $@;

This has been fixed in upstream commit:

commit a3ff80c12c16886edf9acdd3d172798e50defdb3
Author: Eric Brine <[email protected]>
Date:   Mon Jun 18 14:56:32 2012 -0400

    RT#113730 - $@ should be cleared on "do" IO error.


Tested with perl-5.14.2-198.fc16.x86_64. All Fedoras are affected probably.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to