Click here to get back home

fedora core 5 + install net::ssh::perl = hangs

 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
fedora core 5 + install net::ssh::perl = hangs luc2 06-25-2007
Posted by luc2 on June 25, 2007, 6:32 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

Posted by Gunnar Hjalmarsson on June 25, 2007, 8:32 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

Posted by Simon Andrews on June 29, 2007, 9:52 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
fedora core 3 install error - no drives found January 27, 2006, 6:37 pm
File Creation Problem with CGI Scripts in Apache cgi-bin (Fedora Core 3) August 21, 2006, 11:00 am
Net::SSH::Perl install Hangs February 24, 2007, 9:55 pm
Perl core dumping - possible bug? September 12, 2005, 6:48 pm
Adding Perl Core functions April 22, 2005, 11:57 pm
Scalar::Util is not using XS in Fedora 8, leading to performance problem November 26, 2007, 9:22 pm
How to open Perl.5.8.6.Core for Viewing Errors June 22, 2006, 2:00 am
Perl core support for inside-out classes June 24, 2006, 5:42 pm
perl -d memory fault and core dump. November 20, 2006, 2:04 pm
perl dumps core on AIX when loading external library February 13, 2006, 11:31 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap