Click here to get back home

Error building perl on HP-UX

 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
Error building perl on HP-UX Anant 06-09-2005
Get Chitika Premium
Posted by Anant on June 9, 2005, 1:25 am
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
Finding the right test that had an error when building Perl June 11, 2007, 9:10 am
error in tkGlue.c when building Tk November 13, 2007, 5:47 pm
Has anyone compiled HPUX::pstat under hpux 11.11 using aCC June 13, 2008, 1:39 pm
Replacing binary data containing & using perl in HPUX 11.11 September 23, 2008, 5:06 am
Building perl February 28, 2005, 9:01 pm
Probs Building Perl on HP-UX 11.23 June 6, 2007, 1:16 pm
Question about building perl 5.8.6 multi-threaded on Linux February 6, 2005, 1:00 pm
Building a perl C extension module erroring out on Ubuntu 5.10 September 15, 2006, 7:02 pm
problems building perl modules, path question October 28, 2007, 8:53 pm
Question about building perl-5.8.5 multi-threaded on RedHat 9 Linux July 22, 2004, 8:41 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap