Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Bug : eval and accent

by ikegami (Pope)
on Nov 16, 2007 at 10:06 UTC ( #651156=note: print w/replies, xml ) Need Help??


in reply to Bug : eval and accent

Replicated the problem (Active Perl 5.8.8, WinXP) and it's definitely a bug.

The code does get executed. Changing
my $code2='$string="new eval done";';
to
my $code2='$string="new eval done"; print "!"';
prints an exclamation point. Perl just doesn't seem to access $string properly.

The bug doesn't manifest itself if you change
my $code1='my $var_with__accent;';
to
my $code1='$var_with__accent;';

By the way, that's a iso-latin-1 encoded é, "\xE9".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://651156]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2021-01-16 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?