Click here to get back home

Calling a 32 bit Library from 64 bit perl extension

 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
Calling a 32 bit Library from 64 bit perl extension sstoural 09-24-2007
Posted by sstoural on September 24, 2007, 1:01 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 Ben Morrow on September 24, 2007, 6:11 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 MakeMaker - how to force Perl linking with the static C library (libcrt.lib) instead of dynamic C library (msvcrt.lib) April 17, 2007, 5:20 pm
Build libperl.so shared library from static library or source? February 9, 2007, 11:16 pm
perl C extension September 18, 2006, 2:34 pm
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
executing perl script without .pl extension August 2, 2006, 10:24 am
Which Perl 5 OO extension can be seen as "standard" (defacto, quasi)? June 15, 2007, 8:20 am
Building a perl C extension module erroring out on Ubuntu 5.10 September 15, 2006, 7:02 pm
array::Compare - Perl extension for comparing arrays March 23, 2007, 5:32 am
help perl & artnet (dmx) example / library? May 19, 2008, 11:02 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap