Can I sort blogs by the age of their starters?
DBI.pm issue on windows: uninitialized values
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Perl web-programming > DBI.pm issue on windows: uninitialized values 9 December 2003 18:58:52

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

DBI.pm issue on windows: uninitialized values

Peter Chen 9 December 2003 18:58:52
 I have installed DBI 1.39 on a Win 2000 with Perl 5.6.1 and DBD::Oracle
1.12.

When I tried to connect to an Oracle database on UNIX with the following
code:
my $dbh = DBI->connect('DBI:O­racle:XYZDB', 'username', 'password');

I got an error message from DBI.pm line 584: Use of unintialized value
in concatenation (.) or string at C:/programs/perl/si­te/lib/DBI.pm line
584.

Any thing wrong with my installation ? I installed DBI and DBD::Oracle
via ppm. I would appreciate any help. Thanks in advance.

Peter




Add comment
Tim Bunce 9 December 2003 02:59:40 permanent link ]
 On Mon, Dec 08, 2003 at 05:50:29PM -0500, Peter Chen wrote:> I have installed DBI 1.39 on a Win 2000 with Perl 5.6.1 and DBD::Oracle> 1.12.>
When I tried to connect to an Oracle database on UNIX with the following> code:> my $dbh = DBI->connect('DBI:O­racle:XYZDB', 'username', 'password');>
I got an error message from DBI.pm line 584: Use of unintialized value> in concatenation (.) or string at C:/programs/perl/si­te/lib/DBI.pm line> 584.>
Any thing wrong with my installation ? I installed DBI and DBD::Oracle> via ppm. I would appreciate any help. Thanks in advance.

According to my source line 584 is

$user = '' if !defined $user;

and I doubt that would generate that warning.

Please post the output of

perl -MDBI -e "DBI->installed_ver­sions"
and
perl -MDBI -e "DBI->connect('DBI:­Oracle:XYZDB', 'username', 'password')"

Tim.

Add comment
Michael A Chase 9 December 2003 03:18:09 permanent link ]
 On Mon, 08 Dec 2003 17:50:29 -0500 Peter Chen <pkchen@us.ibm.com>­ wrote:
I have installed DBI 1.39 on a Win 2000 with Perl 5.6.1 and DBD::Oracle> 1.12.>
When I tried to connect to an Oracle database on UNIX with the following> code:> my $dbh = DBI->connect('DBI:O­racle:XYZDB', 'username', 'password');>
I got an error message from DBI.pm line 584: Use of unintialized value> in concatenation (.) or string at C:/programs/perl/si­te/lib/DBI.pm line> 584.>
Any thing wrong with my installation ? I installed DBI and DBD::Oracle> via ppm. I would appreciate any help. Thanks in advance.

Check for extra copies of DBI in your system. There is no string
or concatenation in line 584 of DBI.pm version 1.39. The changes that
pushed the closest string expression from line 584 to line 588 are
there to deal with exactly that error message.

--
Mac :})
** I usually forward private questions to the appropriate mail list. **
Ask Smarter: http://www.catb.org­/~esr/faqs/smart-que­stions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.

Add comment
Peter Chen 9 December 2003 18:58:52 permanent link ]
 Tim,

perl -MDBI -e "DBI->installed_ver­sions" returns the following:

Can't locate auto/DBI/installed_­v.al in @INC (@INC contains:
C:/Programs/perl/li­b C:/Programs/perl/si­te/lib .)
at -e line 1

perl -MDBI -e "DBI->connect('DBI:­Oracle:XYZDB', 'username', 'password')"
returns the following:

DBI connect('XYZDB','us­ername',...) failed: at -e line 1

Peter


Tim Bunce wrote:
On Mon, Dec 08, 2003 at 05:50:29PM -0500, Peter Chen wrote:> > I have installed DBI 1.39 on a Win 2000 with Perl 5.6.1 and DBD::Oracle> > 1.12.> >
When I tried to connect to an Oracle database on UNIX with the following> > code:> > my $dbh = DBI->connect('DBI:O­racle:XYZDB', 'username', 'password');> >
I got an error message from DBI.pm line 584: Use of unintialized value> > in concatenation (.) or string at C:/programs/perl/si­te/lib/DBI.pm line> > 584.> >
Any thing wrong with my installation ? I installed DBI and DBD::Oracle> > via ppm. I would appreciate any help. Thanks in advance.>
According to my source line 584 is>
$user = '' if !defined $user;>
and I doubt that would generate that warning.>
Please post the output of>
perl -MDBI -e "DBI->installed_ver­sions"> and> perl -MDBI -e "DBI->connect('DBI:­Oracle:XYZDB', 'username', 'password')">
Tim.


Add comment
Peter Chen 9 December 2003 18:59:49 permanent link ]
 Tim,

perl -MDBI -e "DBI->installed_ver­sions" returns the following:

Can't locate auto/DBI/installed_­v.al in @INC (@INC contains:
C:/Programs/perl/li­b C:/Programs/perl/si­te/lib .)
at -e line 1

perl -MDBI -e "DBI->connect('DBI:­Oracle:XYZDB', 'username', 'password')"
returns the following:

DBI connect('XYZDB','us­ername',...) failed: at -e line 1

Peter

Tim Bunce wrote:
On Mon, Dec 08, 2003 at 05:50:29PM -0500, Peter Chen wrote:> > I have installed DBI 1.39 on a Win 2000 with Perl 5.6.1 and DBD::Oracle> > 1.12.> >
When I tried to connect to an Oracle database on UNIX with the following> > code:> > my $dbh = DBI->connect('DBI:O­racle:XYZDB', 'username', 'password');> >
I got an error message from DBI.pm line 584: Use of unintialized value> > in concatenation (.) or string at C:/programs/perl/si­te/lib/DBI.pm line> > 584.> >
Any thing wrong with my installation ? I installed DBI and DBD::Oracle> > via ppm. I would appreciate any help. Thanks in advance.>
According to my source line 584 is>
$user = '' if !defined $user;>
and I doubt that would generate that warning.>
Please post the output of>
perl -MDBI -e "DBI->installed_ver­sions"> and> perl -MDBI -e "DBI->connect('DBI:­Oracle:XYZDB', 'username', 'password')">
Tim.


Add comment
Peter Chen 9 December 2003 19:05:16 permanent link ]
 Looks like I have two DBI.pm on my hard drive:
one at c:\Programs\perl\si­te\lib\Bundle\ with size of 1248 bytes
the other one at C:\Programs\perl\si­te\lib\ with size of 228821 bytes

Also, I have ActiveState's windows vesion of Perl.

Peter

Michael A Chase wrote:
On Mon, 08 Dec 2003 17:50:29 -0500 Peter Chen <pkchen@us.ibm.com>­ wrote:>
I have installed DBI 1.39 on a Win 2000 with Perl 5.6.1 and DBD::Oracle> > 1.12.> >
When I tried to connect to an Oracle database on UNIX with the following> > code:> > my $dbh = DBI->connect('DBI:O­racle:XYZDB', 'username', 'password');> >
I got an error message from DBI.pm line 584: Use of unintialized value> > in concatenation (.) or string at C:/programs/perl/si­te/lib/DBI.pm line> > 584.> >
Any thing wrong with my installation ? I installed DBI and DBD::Oracle> > via ppm. I would appreciate any help. Thanks in advance.>
Check for extra copies of DBI in your system. There is no string> or concatenation in line 584 of DBI.pm version 1.39. The changes that> pushed the closest string expression from line 584 to line 588 are> there to deal with exactly that error message.>
--> Mac :})> ** I usually forward private questions to the appropriate mail list. **> Ask Smarter: http://www.catb.org­/~esr/faqs/smart-que­stions.html> Give a hobbit a fish and he eats fish for a day.> Give a hobbit a ring and he eats fish for an age.


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Perl web-programming > DBI.pm issue on windows: uninitialized values 9 December 2003 18:58:52

see also:
Webbased Visual DOM Training Tool
Usage of PAR (Perl ARchive Toolkit)
Help! CDO
пройди тесты:
see also:
TuneClone V1.20 free download
Ways to remove DRM from iTunes music on…
Updated: How to convert iTunes…

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .