in reply to utf8 whacks Carp in 5.12.1
I can reproduce it with 5.12.2, too. Definitely a bug, I'd say.
FWIW, the same problem exists with
#!/usr/local/bin/perl5.12.2 use strict; use diagnostics; use utf8; $c;
As soon as "use utf8" is in the game, the output is
BEGIN not safe after errors--compilation aborted at /usr/local/lib/per +l5/5.12.2/diagnostics.pm line 569.
while if you comment it out, you get the expected "Global symbol "$c" requires explicit package name", followed by the corresponding diagnostic message.
The order of the use statements doesn't seem to matter, and use utf8 without use diagnostics doesn't produce the error. The code works fine with 5.10.1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: utf8 whacks Carp in 5.12.1
by andal (Hermit) on Jan 25, 2011 at 13:34 UTC |