Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Passing variables to another script (theory)

by DamnDirtyApe (Curate)
on Mar 31, 2004 at 05:47 UTC ( [id://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.

HTH


_______________
DamnDirtyApe
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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found