Incorperate the processing of the uploaded file into a subroutine. The subroutine will be passed the result from param('upload' . $n), where $n is the number of the upload field.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
In reply to Re: Shortening long and dirty code
by hardburn
in thread Shortening long and dirty code
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |