Click here to get back home

seting cookies to use some links with perl

 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
seting cookies to use some links with perl Francois 11-13-2007
Get Chitika Premium
Posted by Francois on November 13, 2007, 11:24 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 Regex to search for ed2k links February 6, 2005, 3:35 pm
Looking for Perl Script, which retrieves all Links from a site December 8, 2005, 2:02 am
Broken links in Activestate Perl distribution February 22, 2008, 6:47 am
Perl Cookies September 1, 2005, 1:27 pm
need to clear cookies in IE using perl Win 32 IE automation September 8, 2006, 9:56 am
Getting session cookies to work with perl October 24, 2006, 6:37 pm
Perl Win32::Internet and Session cookies September 19, 2005, 1:58 pm
web links April 23, 2006, 12:54 pm
LWP: Any Easy Way to Use Relative Links? March 22, 2005, 12:14 am
Pod::Html links to Modules October 26, 2005, 5:00 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap