On Tue, 2006-18-04 at 13:37 +0100, M K Scott wrote: > I am just starting out teaching myself Perl from books and web resources so I > apologise if my questions seems a little straight forward but I was hoping to > ask here to get clarification and so I hope my simple questions do not annoy > you all and that I have the right forum for these questions :) > > 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? >
It's hard to guess what you're doing without seeing any code. How do you enter the '£'? Is it a key on your keyboard? If you printed out the array, what do you see? print "@arrayname\n"; -- __END__ Just my 0.00000002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is at http://perldoc.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>