Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!cs.utexas.edu!sun-barr!newstop!male!mugwump.UK.Sun.COM!carl From: carl@mugwump.UK.Sun.COM (Carl Johnson - Sun EHQ - MIS) Newsgroups: comp.lang.perl Subject: Help! (What else?) Keywords: perl Message-ID: <4569@male.EBay.Sun.COM> Date: 22 Jan 91 18:15:05 GMT Sender: news@male.EBay.Sun.COM Lines: 18 Greetings, First off I am an extremely novice perl user, ie I just compiled the source, so my apologies if I am making an obvious mistake. A file I have, has been run through cat -v and to undo this I have been given the following perl commandline :- perl -pe 's/\^(.)/sprintf("%c",ord($1) &~ 0x40)/ge' However when I type in the following :- perl -pe 's/\^(.)/sprintf("%c",ord($1) &~ 0x40)/ge' < thefile I get :- syntax error in file /tmp/perl-ea06498 at line 2, next token "}" Execution aborted due to compilation errors. Any help, RTFM's etc greatfully received. Cheers, Carl.