Hi Revered Monks,
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.
$var = "project";
my @ca = ("dbi:Oracle:testdbp",$var,"project7");
eval {
my $dbh = DBI->connect(@ca);
};
if($@) {
print "Oracle error: $@\n";
}
This code works fine. But when i get the project name from another module...instead of hard coding it as "project"
$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.
-Prasanna.K
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.