Sure! There's lots of free perl code at the Comprehensive Perl Archive Network (CPAN). Much of it is highly relevant to creating websites, including uploading images. Have fun!
Updated: fixed link. I mean it's not like I was trying to torment the poor OP or something.