First time question here. Using Win32 Perl. I have written a file upload script that gets processed with CGI.pm. I am trying to create a progress bar that monitors the overall upload of 1 or more files. I believe that CGI::upload_hook() is just what I am looking for but have had a devil of a time find any good examples to work off of. And the existing docmentation has left me pretty confused.
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!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.