rolinger has asked for the wisdom of the Perl Monks concerning the following question:
My understanding is that if called, CGI.pm will loop the upload_hook() module until the entire file upload is completed, but while looped, the &hook sub routine will process what ever I need to be processed - in this case the passing over vars to another script or out to a text file that can be read by another script that is being processed in a pop-up window.
1) Am i even on the right track?
2) Where do I define CGI::upload_hook(\&hook,$data); ? Before or after "use CGI;", before or after "$query = new CGI'" ?
3) What is $data, it gets passed in AND is passed right back out - what is its value supposed to be going in and what does &hook use it for. Whats the value of it when it gets passed out?
My upload script works just fine, its trying to get this progress bar to work that is killing me.
Thank you oh wise ones!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Understanding CGI::upload_hook() ;
by cees (Curate) on Aug 19, 2005 at 19:58 UTC | |
by rolinger (Initiate) on Aug 19, 2005 at 21:01 UTC | |
by cees (Curate) on Aug 19, 2005 at 23:14 UTC |