in reply to Bug : eval and accent
Leaving aside the eval bug, if you wanted to make this code work, that's what the use utf8 pragma is for (permitting utf8 chars in the script source). It's lexically scoped, so you'll want it in each eval, so you could prepend it to the source code.
works fine on my perl 5.8.8 system. Maybe this helps you in the short term?#!/usr/bin/perl use strict; use warnings; use utf8; my $var_with_é_accent = 10; print "var is $var_with_é_accent\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Bug : eval and accent
by SFLEX (Chaplain) on Nov 16, 2007 at 12:30 UTC | |
by graff (Chancellor) on Nov 16, 2007 at 12:52 UTC | |
by jbert (Priest) on Nov 16, 2007 at 12:56 UTC | |
by borisz (Canon) on Nov 16, 2007 at 13:04 UTC |
In Section
Seekers of Perl Wisdom