nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

local $\ doesn't work right. #318

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
$>perlcc -O3 -r -e ' { local $\ = "ok" ; print ""} '

Expect output to be "ok" but I get nothing.

seems similar to issue 314...

Original issue reported on code.google.com by todd.e.rinaldo on 7 May 2014 at 10:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I also re-opened issue 306

Original comment by reini.urban on 8 May 2014 at 1:28

GoogleCodeExporter commented 9 years ago
Fixed with commit f950d8a569dbd2a364ea0885a6ce938c09fcb278
Author: Reini Urban <rurban@cpanel.net>
Date:   Thu May 8 09:54:57 2014 -0500

    Support local $\ = "somestring" (#318)

    Fixes coretest regressions from 1.43: t/CORE/io/print.t, t/CORE/op/tiehandle.t
    and t/CORE/op/smartkve.t,
    and fixes #318.

    PL_ors_sv needs to be initialized to PL_rs with proper SV -> GV backlink
    as perl initializes it as Nullsv.

Original comment by reini.urban on 8 May 2014 at 3:00

GoogleCodeExporter commented 9 years ago
Better fix with commit 293768cc7a70d2ee8ddbc6ab5c16e31e586966bb
Author: Reini Urban <rurban@cpanel.net>
Date:   Thu May 8 11:35:52 2014 -0500

    C: Fix #318, attach no PL_ors_sv magic back to GV

    fixes all of the CORE test regressions, but t/CORE/op/smartkve.t

Original comment by reini.urban on 8 May 2014 at 5:00

GoogleCodeExporter commented 9 years ago
Issue 323 has been merged into this issue.

Original comment by nicolas....@gmail.com on 8 May 2014 at 8:15