"M K Scott" schreef:

> I am trying to initialise an array with certain characters in it to
> then match to user input but the '£' symbol is coming up in the
> comparison as a funny looking 'u symbol with a squiggle above.  Is
> this due to me being inept at programming or my PC not understanding
> the pound sign?
>
> I am using a simple: @arrayname = qw($ £ * & ! #);
>
> Any comments on what I need to do or am doing wrong?

Looks like an encoding problem. The pound is hex-A3 in Latin-1
(ISO-8859-1).
http://en.wikipedia.org/wiki/ISO_8859-1

$ perl -le '@ary=qw($ X * & ! #); $ary[1]="\xA3"; print"@ary"'
$ £ * & ! #

-- 
Affijn, Ruud

"Gewoon is een tijger."


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to