Thanks to everyone for their ideas. They took care of the problem. Unfortunately, another problem has arisen. Again I would appreciate any insight into the problem. Here is where I am so far:

$ENV{ORACLE_HOME} = '/opt/OraHome9i/6iserver'; $ENV{REPORTS60_PATH} = '$ORACLE_HOME/repordmin/templates:$ORACLE_HOME/ +tools/devd em60/demo/reports'; if(&ReadParse(\%input)){ @args= ("/opt/OraHome9i/6iserver/bin/rwcli60", "report=$input{rpt}" , + "userid=rep_user/sinclair\@pmi", "server=rep60_kodiac", "destype=pri +nter", "desname=$input{desname}", "btch=$input{btch}", "subbtch=0", " +record=$input{record}"); &ProcessForm;} else{ die;} } sub ProcessForm { $retval = system("@args"); die "system failed: $?" unless $retval == 0;

The problem is thus: If I call this script "test2.pl" from the command line and pass it parameters it works fine. EX.test2.pl rpt=report.rdf desname=printername btch=50 record=0
Now if I call it from an html page as a url. EX.http://blah/blah/test2.pl?rpt=report.rdf&desname=printername&btch=50&record=0 it gives me an error and $retval=256. I don't know why it works from the command line and prints the report, but from the html page as url it doesn't. Please help a confused novice.

Prince99

Too Much is never enough...

In reply to Re: Re: help with arrays by Prince99
in thread help with arrays by Prince99

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.