I created a stored procedure from Oracle9i to deal with some data transactions from DB to DB. I am going to use Perl
to handle the following actions:
1) connect to the database
2) call stored procedure
3) catch any messages from DBMS_OUTPUT.print_line() inside
my stored procedure.
Does...
Thank you Trojan and Kevin giving me a good lesson on comparison by using hash. However, I have some concerns about memory and hash. I want to use the same structure showed below to load all my data into hashes, and so I can compare the incoming data before I can insert or update the data...
Support I have two arrays, and each of them doesn't have repeat elements. And compare the first array to the second one, if element repeats in 2nd array, the element has to be removed from the 1st one. i.e.
###################################################
@arry1 = ("1", "2", "3");
@arry2 =...
I tried to create a simple script to open a file,
and I always got this error msg,
"Use of uninitialized value in concatenation (.) or string at readfile.pl line 5.
readline() on closed filehandle LOG at readfile.pl line 7."
Here is my code...
I really new in Perl. I tried to create a simple script to
find the duplicate items in array. Here is my source code:
###########################################################
@arry = ("1", "2", "2", "2", "3", "3");
@dups = ();
@copiedArry = @arry;
$size = @arry;
$arryLoc = $size - 1;
for...
From the last post, first, thank you for your reponses, but I
am still not clear about "hash of hashes". I have one more example here, support,
#########################################################
$statement = "select A, B , C from myTable";
if ($db -> Sql($statement))
{
# ..doing error...
I am new in Perl script. I get a real headache to understand
"hash of hashes". Could someone please explain to me? Here is some example codes:
"...
if($tempids{'IP'}{ $IP { $hostname } }{ $resourceID } !=1 )
{
$add_detail{'IP'}{$resourceID}{$IP{$hostname}} = 1;
}
...
"
Thanks,
Lucas
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.