Click here to get back home

Help with downloading large files

 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
Help with downloading large files sales 04-15-2005
Get Chitika Premium
Posted by sales on April 15, 2005, 1:31 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
Errors downloading files for CPAN modules January 5, 2006, 10:05 am
processing large files April 6, 2006, 2:42 pm
cgi upload of very large files (>2GB) April 25, 2006, 4:10 am
Help: joining 5 LARGE text files August 19, 2004, 4:05 am
Changing seperator in large CSV files? January 18, 2006, 12:42 am
Large Data files and sizes - what are you doing about them? March 9, 2006, 1:43 pm
Aggregating/Sorting Large files May 25, 2006, 12:52 pm
Handling Large files (a few Gb) in Perl July 16, 2007, 7:40 am
Strange behavior when working with large files July 1, 2005, 9:20 am
Searching large files with a regex and a list May 30, 2006, 11: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