kprasanna_79 has asked for the wisdom of the Perl Monks concerning the following question:
i have a variable which holds a value returned from a subroutine
$var = $pack->get_proj();
i am using this value for connecting the db
new myproj::DB(["dbi:Oracle:$db",$var,$var.length($var)]);
But this thows time out error. But when i hardcode the value it works fine
new myproj::DB(["dbi:Oracle:$db","proj",$var.length($var)]);
The only difference is the doublequote present in the character (proj), which is nothng but string. Is there any way i can make the $var as string like to_string($var).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: question on strings
by mreece (Friar) on Mar 26, 2007 at 16:56 UTC | |
|
Re: question on strings
by Fletch (Bishop) on Mar 26, 2007 at 17:06 UTC |