Click here to get back home

Perl Extreme Programming download now | http://freepdf-ebook.blogspot.com/2007/12/extreme-perl-programming.html

 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
Perl Extreme Programming download now | http://freepdf-ebook.blogspot.com/2007/12/extreme-perl-programming.html Tony Andreas 12-25-2007
Get Chitika Premium
Posted by Tony Andreas on December 25, 2007, 3:28 pm
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
Free perl reference ebook Download now | http://freepdf-ebook.blogspot.com/2007/12/tech-perl-programming-in-21-days.html December 11, 2007, 4:54 pm
Free perl ebook | http://freepdf-ebook.blogspot.com/2007/12/tech-perl-programming-in-21-days.html December 14, 2007, 3:58 pm
New Perl Blog http://perlblogger.blogspot.com November 15, 2005, 4:40 pm
http://cheap-computers-review.blogspot.com March 24, 2006, 1:24 pm
How to suppress http headers during download August 8, 2005, 11:22 am
small mistake: http://perl.plover.com/FAQs/Namespaces.html July 3, 2007, 5:27 pm
Feasibility of using Perl to strip selected html tags and/or attributes (scripting/programming novice) May 12, 2005, 2:26 pm
How to download just the html help of activeperl November 18, 2005, 7:06 pm
Download a HTML page with images? April 25, 2005, 8:24 am
How to call a simple perl script from HTML without need of HTTPS but simple HTTP ? May 11, 2006, 4:37 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap