in reply to Re: Re: CGI.pm file upload freaking me out
in thread CGI.pm file upload freaking me out

On the other hand, /\.jpe?g?$/ would also allow .jp, so this might be more suitable: if ($file_name !~ /\.jp(?:eg?|g)$/)