kprasanna_79 has asked for the wisdom of the Perl Monks concerning the following question:
I am using the perl verision 5.6.1. I am trying to connect to DB using the DBI module and below is my code.
This code works fine. But when i get the project name from another module...instead of hard coding it as "project"$var = "project"; my @ca = ("dbi:Oracle:testdbp",$var,"project7"); eval { my $dbh = DBI->connect(@ca); }; if($@) { print "Oracle error: $@\n"; }
$var = $ji->tag('sys_projectname');
Here it throws the below error
Oracle error: Can't locate object method "SWASHNEW" via package "utf8" + (perhaps you forgot to load "utf8"?) at /opt/perl.20020530/lib/site_ +perl/5.6.1/PA-RISC/DBD/Oracle.pm line 208.
But the value returned from the another module is same as "project". I have printed the value and checked. I searched in the internet, where i could find that this is a bug with perl 5.6.1
I need to confirm before i tell it to my client. Please throw some light on this issue.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't locate object method "SWASHNEW" via package "utf8"
by talexb (Chancellor) on Mar 27, 2007 at 20:58 UTC |