Click here to get back home

bop OLTP server, has anyone tried this thing?

 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
bop OLTP server, has anyone tried this thing? gavino 07-25-2006
Posted by gavino on July 25, 2006, 1:04 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
Can I hack this perl thing ? February 26, 2007, 1:48 am
Newbie perl and flash thing January 12, 2006, 5:32 pm
Is there such a thing as PERL portability checklist ... May 9, 2006, 11:39 pm
Multiple copy and paste thing in Perl May 6, 2007, 9:41 pm
Connecting to a Server on a Server February 6, 2008, 10:55 am
connect a database in remote server (can connect to the server via SSH) July 17, 2007, 12:35 pm
Asking for the question for DBI for MS SQL Server October 6, 2004, 3:31 am
Help! Sendmail on Mac OS X Server October 12, 2004, 3:53 pm
simple CGI web server May 19, 2005, 4:06 am
Perl FAQ Server - why? May 15, 2006, 3:55 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap