Click here to get back home

perl embedding test fails on z/OS

 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
perl embedding test fails on z/OS dazio_r 01-06-2005
Get Chitika Premium
Posted by dazio_r on January 6, 2005, 10:53 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
Net::SSH::Perl make test fails January 11, 2007, 1:06 pm
TEST Fails. December 2, 2005, 5:03 am
make test fails, ExtTest dir September 15, 2005, 9:46 am
Math::GMP make test fails. January 5, 2007, 1:25 am
5.8.5 make test fails on lib/ExtUtils/Constant with icc August 25, 2004, 5:36 am
embedding the 'perl' (newbie) September 26, 2006, 8:41 am
Embedding the perl, part II October 1, 2006, 1:46 pm
Problem when embedding 2 Perl interpreters in C++ July 11, 2006, 10:19 am
Embedding perl in shared libs November 22, 2006, 2:53 am
New article online: 'Embedding Perl in database tables' March 18, 2005, 5:31 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap