Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Passing variables to another script (theory)

by DamnDirtyApe (Curate)
on Mar 31, 2004 at 05:47 UTC ( #341209=note: print w/replies, xml ) Need Help??

in reply to Passing variables to another script (theory)

It sounds to me like all you need is a mechanism to write to a config file from your admin.cgi script, and read from the config file in admin.cgi and any number of other CGI scripts.

Perl will do this well in any number of ways; you might consider:

  • Config::IniFiles, which will read and write config files in a simple INI format,
  • XML::Simple, which will read and write XML,
  • Your own hand-rolled solution. Decide on a simple format you can parse with split or a regexp, and write the code that will write your checkbox values in this format.

To keep the checkboxes checked, simply read the config file as discussed above, and generate the CGI form elements accordingly.


Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
            --Friedrich Nietzsche
  • Comment on Re: Passing variables to another script (theory)

Replies are listed 'Best First'.
Re: Re: Passing variables to another script (theory)
by etcshadow (Priest) on Mar 31, 2004 at 05:53 UTC
    Either that or just get over the hump and use a database.
    ------------ :Wq Not an editor command: Wq

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://341209]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2021-10-22 08:00 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (85 votes). Check out past polls.