sylvanus_monachus has asked for the wisdom of the Perl Monks concerning the following question:

Here is a strange perl bug

After Eval a var with an accent , other evals don't work... Have you ever see this, and who i need to alert of this perl bug ??

The bug

$string should be "new eval done" and it is undef...

The Code

my $code1='my $var_with__accent;'; print "Eval buggy code\n"; eval $code1; print "ERR = $@" if ($@);; print "DONE\n"; my $string; my $code2='$string="new eval done";'; print "Eval good code\n"; eval $code2; print "ERR = $@" if ($@); print "string is : $string\n"; print "DONE\n";


i have reported a perl bug (47517)