Click here to get back home

Error using perl Net::SFTP module

 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 using perl Net::SFTP module Brian Drust 07-14-2004
Get Chitika Premium
Posted by Brian Drust on July 14, 2004, 9:55 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
net::sftp write error with multiple packet writes October 22, 2007, 1:46 pm
Perl module error at runtime August 19, 2005, 9:59 pm
perl module include error June 28, 2006, 12:42 pm
"Undefined symbol" error in Perl module that loads other shared libs January 10, 2006, 10:29 pm
Can't use an undefined value as an ARRAY reference at C:/Perl/site/lib/Net/SFTP/ November 21, 2006, 12:40 am
Net::SMTP module error September 28, 2006, 8:29 am
Error when using a defining a new module April 3, 2007, 8:25 am
Error "Undefined subroutine" & module references August 10, 2005, 9:23 am
Module to handle substitution in error messages? November 19, 2005, 11:17 pm
Obscure baffling "module not exported" error: can someone help me find the cause? January 31, 2008, 3:20 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap