Click here to get back home

$$$$$$$www.200836.com ,Ticketing Center to deal with applications

 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
$$$$$$$www.200836.com ,Ticketing Center to deal with applications feiallen 12-18-2007
Get Chitika Premium
Posted by feiallen on December 18, 2007, 9:05 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
how to deal with ' December 13, 2006, 1:29 am
Accessing TestDirector for Quality Center OTA API using Perl May 3, 2006, 3:53 pm
$$$$$$$www.200836.com , September 2000, Sydney -- Information meeting between the IOC and the Candidate Cities. December 17, 2007, 10:15 am
Which module can deal with sound and transform it on the net? April 11, 2007, 12:40 am
TableExtract question - how to deal with headers with spaces? September 30, 2004, 2:56 pm
www.200836.com- Peking 2008 Olympic Games Goals: High-level Olympics with distinguishing features December 12, 2007, 9:04 pm
Applications Help! November 27, 2007, 1:50 pm
distributing perl applications September 18, 2004, 1:18 pm
Using embedded PERL with commercial applications? November 23, 2004, 10:56 pm
how to run applications in windows using perl scripting May 10, 2006, 8:05 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap