Click here to get back home

Building a perl C extension module erroring out on Ubuntu 5.10

 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
Building a perl C extension module erroring out on Ubuntu 5.10 Dan Stromberg 09-15-2006
Get Chitika Premium
Posted by Dan Stromberg on September 15, 2006, 7:02 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
Need to add C flag when building a CPAN module August 30, 2005, 9:24 am
Erroring Out When Creating A Hung Process October 31, 2005, 1:37 pm
HELP -- UBUNTU -- Do not have a proper compiling system February 26, 2006, 11:01 am
Building perl February 28, 2005, 9:01 pm
Error building perl on HP-UX June 9, 2005, 1:25 am
Probs Building Perl on HP-UX 11.23 June 6, 2007, 1:16 pm
perl C extension September 18, 2006, 2:34 pm
Finding the right test that had an error when building Perl June 11, 2007, 9:10 am
Help regarding Perl modules in .pl and .in extension. May 5, 2005, 6:44 pm
associating .pl extension with perl October 7, 2005, 6:26 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap