http://www.perlmonks.org?node_id=859550


in reply to Re^7: file upload and IO::Handle
in thread file upload and IO::Handle

I still cannot figure out hook, the values passed to it(or jus, received (why not passed, or where passed from?)) and what executes it.

Well, CGI explains all that in Progress bars for file uploads and avoiding_temp files but what happens is, CGI has a socket for the upload, every time it reads a chunk from the socket, it calls the hook with the new data, which is where your parameters are coming from.