if I have the following code


 sub test {


 $dbh =get_dbh;


   
 test1($dbh,$somedata);


 close($dbh);


}


sub test1 {

  my ($dbh,$data)=@_;


  #sql code


}


if the $sql code fails in subroutine  "test1" does it causes a open process
since I defined $dbh as local?



Anthony Scott

Reply via email to