Any good coders out there? Perl?



Hi All,

I need to convert a PHP script into Perl. This PHP script interacts
with our Oracle database. It executes some stored procedures and
returns values. I've pasted the PHP code below, I'm just not sure how
to code it in Perl & DBI. Can anyone help?? I would really
appreciate it.

PHP CODE
----------------
$conn = ociplogon("scott", "tiger", "ABCD.world");
$curs = OCINewCursor($conn);
$stmt = OCIParse($conn,"BEGIN AUTO_CHARGE.EXP_RENEW_SUBSCR(:data);
end ;");
ocibindbyname($stmt,"data",&$curs,-1,OCI_B_CURSOR);
ociexecute($stmt);
ociexecute($curs);

while (OCIFetchInto($curs,&$data)) {
$customer_id = $data[0];
$owner_name = $data[1];
$type = $data[2];
$code = $data[3];
..
..
..
}

.



Relevant Pages

  • Re: [PHP] retrieve POST body?
    ... If I do go the route of using something else to accept the form data and then executing the PHP script, I'd be leaning more toward somehow executing the PHP script directly rather then sending back a redirect to the user-agent to re-send the request to the PHP script. ... Reconstruct an identical POST body from the $_POSTarray, with some trial-and-error form field renaming and placement of uploaded files. ... This would allow future improved operation in case the feature request ever materializes, or a sysadmin uses an external process (Perl or whatever else) to dump the POST body to a file. ...
    (php.general)
  • Re: Problems of PHP script running Perl program with Spreadsheet::ParseExcel module
    ... Spreadsheet::ParseExcel module to parse Excel file. ... php script from command line so that perl script can run and properly ... then launch php through client request, perl program can't run. ...
    (comp.lang.php)
  • Re: Any good Perl coders out there?
    ... I need to convert a PHP script into Perl. ... It executes some stored procedures and ... I've pasted the PHP code below, ...
    (comp.lang.perl.misc)
  • Re: Any good Perl coders out there?
    ... I need to convert a PHP script into Perl. ... It executes some stored procedures and ... I've pasted the PHP code below, ...
    (comp.lang.perl.misc)
  • Re: Any good coders out there? Perl?
    ... I need to convert a PHP script into Perl. ... It executes some stored procedures and ... to code it in Perl & DBI. ...
    (perl.dbi.users)