[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sharing data structures between scripts (forms)


Hi,

I've done a decent amount of work in a particular script which reads a (flatfile) database, builds some data structures (hashes of arrays of arrays) does some processing and spits out a form.

I then want the user to choose some values on the form, submit it, then I would act upon that, ultimately updating the original data structure and writing out the mods - sounds pretty standard..

My question is, if I choose to handle the form submission (action="" via a second (etc. etc.) script, how do I ensure my in-memory data structures will be available to that other script?

I'm new to cgi/mod-perl, though I gather one could submit back to the same script - though this sounds like a pretty unscalable operation over the long haul, that is having *all* code in one script.

Can someone point me down the right path?  I have a feeling packages might have something to do with it - all my variables/structures are lexically scoped as is..

I apologize if this is not the right forum, but I am using mod_perl!

Many thanks,

Happy Star Wars 30th!

-Mark

Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.