Click here to get back home

how to install Sybase::DBlib???

 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
how to install Sybase::DBlib??? yubo he 08-22-2004
Get Chitika Premium
Posted by yubo he on August 22, 2004, 12:59 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 Brian McCauley on August 22, 2004, 2:25 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
18 Use of uninitialized value at /opt/perl-5.005/lib/site_perl/5.005/sun4-solaris/Sybase/DBlib.pm line 450. May 16, 2005, 4:26 pm
dbd-sybase ppd October 22, 2004, 11:18 am
PAR and Sybase::CTlib on HP-UX February 1, 2007, 12:35 pm
install_driver(Sybase) failed: February 15, 2006, 4:52 pm
Sybase connection error July 28, 2006, 9:07 am
how to connect to sybase in perl August 21, 2007, 9:02 am
How to install module when I am not allowed to install moudule in system directory? August 18, 2006, 12:58 pm
Sybase DBI Returned data query September 9, 2004, 10:22 am
DBD::Sybase : How to get rid of the 255-char limit on varchar? May 15, 2006, 5:13 pm
perl dbi sybase number of columns? December 27, 2006, 5:27 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap