in reply to Problem in File Upload

It is highly unlikely that the code you've shown us triggers that error.

It is likely that a not properly installed APR::Request::Param causes that error.

Still there's something wrong with the code you've shown us too: it open a file without checking if it succeeded. That is only acceptable if autodie is in scope.