punch_card_don has asked for the wisdom of the Perl Monks concerning the following question:
I have your basic database management interface written in Perl and using Template Toolkit. Create a record, update a record, list records by criteria, etc etc.
Now, I want to upload a bunch of data from a text file to the database. The text file's structure does not mirror the database's, so there's going to have be a parsing routine written anyway - so , I thought, wouldn't it be cool to format the newly parsed data into a string encoded as if the html 'create record' form was submitted, then call the existing 'create record' script and pass the string to it.
But - (a) how to do that; (b)what will become of the confirmation template the creation script outputs; (c) what have I not even thought of?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Run one perl script from another?
by guinex (Sexton) on Jun 20, 2007 at 19:30 UTC | |
|
Re: Run one perl script from another?
by talexb (Chancellor) on Jun 20, 2007 at 21:12 UTC | |
|
Re: Run one perl script from another?
by Grundle (Scribe) on Jun 20, 2007 at 22:16 UTC | |
|
Re: Run one perl script from another?
by graff (Chancellor) on Jun 21, 2007 at 03:59 UTC |