Click here to get back home

error message each time I use perl -MCPAN

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
error message each time I use perl -MCPAN mmccaws2 11-07-2007
Posted by mmccaws2 on November 7, 2007, 4:14 am
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
Perl error message April 6, 2006, 7:03 am
Weird Error message February 15, 2005, 8:59 pm
any guess why the error message June 29, 2005, 2:41 am
Error message into scallar September 16, 2006, 12:40 pm
Problem with useless use error message October 24, 2004, 12:21 pm
Odd error message on open()-ing scalar ref July 13, 2008, 4:51 pm
How do I produce a useful error message when a file upload is too big? August 15, 2008, 11:03 am
write error message to a log file while processing the ftp command December 3, 2004, 6:11 pm
HELP! "Method Missing" error message driving me insane. October 7, 2005, 6:21 am
ActivePerl error message? Router script. Please help.Newbie May 17, 2006, 9:58 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap