At 16:39 +0100 2003.11.19, Rafael Garcia-Suarez wrote:
>What does
>       perl -le 'print $!=22'
>on your system ?

22.

>Can you reproduce this bug with $! in place of $^E ?

I tested, but neglected to mention.  No, $! works fine (unless observing
$^E already changed the value of $!):

$ perl -le '$^E = -1728; print $!+0 for 0,1; print $^E+0 for 0,1'
-1728
-1728
-1728
22

$ perl -le '$^E = -1728; print $^E+0 for 0,1; print $!+0 for 0,1'
-1728
22
22
22

Changing the initial $^E to $! makes absolutely no difference:

$ perl -le '$! = -1728; print $!+0 for 0,1; print $^E+0 for 0,1'
-1728
-1728
-1728
22
$ perl -le '$! = -1728; print $^E+0 for 0,1; print $!+0 for 0,1'
-1728
22
22
22

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to