hi ,
I have got a code as under :
Actually i have got four lines of log. Each line of data i have passed to this subroutine which comes as for example say
so i have matched for "equal to"
now all the key value pairs are put in the hash. I need to send hash as a whole to another subroutine and see the values in the hash in that subroutine. How can i do this?
Thanks,
pavan
I have got a code as under :
Code:
sub dbcall { my %hash; my $i=0; print "<<<<<<<@_>>>>>>> \n"; foreach(@_) { %hash=(); if($_=~/\=/) { print "***$`*** \n"; print "***$'*** \n"; $hash{$`} => $'; } foreach(keys %hash) { print "$_ => $hash{$_}"; }
Code:
kkpd=10
Code:
$hash{$`} = $'
Thanks,
pavan
Comment