Click here to get back home

Problems with PerlMSI, part of ActiveState's Perl Development Kit 6.0

 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
Problems with PerlMSI, part of ActiveState's Perl Development Kit 6.0 Graham 08-28-2005
Get Chitika Premium
Posted by Graham on August 28, 2005, 10:17 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

Posted by Graham on August 28, 2005, 10:25 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
perl and web development February 1, 2005, 5:19 am
website development and maintenance, using Perl. Please help! September 30, 2005, 9:56 am
Trying to make sense of perl for web development. June 21, 2007, 12:27 am
Off subject: Permanent Perl Development role, Manhattan May 24, 2005, 9:16 am
A Web Development QUICK LINK PAGE (QLP) - HTML, Perl, PHP, JavaScript, AJAX, CGI, etc. May 1, 2007, 8:02 pm
Embedding the perl, part II October 1, 2006, 1:46 pm
help in development April 21, 2007, 4:00 am
load modules that are not part of the perl dist June 21, 2005, 3:03 pm
PHP Development Resources Directory March 22, 2007, 9:03 pm
Custom Software Development May 7, 2007, 6:48 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap