http://www.perlmonks.org?node_id=118189


in reply to Re: Re: passing an array to a checkbox_group
in thread passing an array to a checkbox_group

Is it a tip to include a print statement at line 5 ?
--

there are no silly questions

killerhippy
  • Comment on Re: Re: Re: passing an array to a checkbox_group

Replies are listed 'Best First'.
Re: Re: Re: Re: passing an array to a checkbox_group
by amulcahy (Acolyte) on Oct 11, 2001 at 15:14 UTC
    I presume you mean this....
    print $query->param( -name=>'TblMenu', -value=>$STable);
    I tried that but it did not work?
      Ok, I (now really having read the code) presume, that you
      simply want to set the CGI-variable, don't you?
      In this case, perldoc CGI tells:

      the param() routine is used to set a CGI parameter
      [..]
      $q->param(-name=>'veggie',-value=>'tomato');


      where $q is determined by the previously stated
      $q = new CGI; # create new CGI object

      So, your statement seems perfectly right. The only clue
      is, that you "call it from another Perl script". In this
      case you have to export/import variables, haven't you?
      If so, wait for another PerlMonk to answer this, because
      I am not experienced with exchanging variables between
      perlscipts.
      --

      there are no silly questions

      killerhippy