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


in reply to Re: Undefined subroutine CGI::upload
in thread Undefined subroutine CGI::upload

I remember reading that you shouldn't mix procedural and OO interfaces, though I'm not sure why.

Let's avoid the possibility of Cargo-Cult memes by supplying an actual reason. ;-)

One reason is that when you mix the two interfaces you generally get 2 CGI objects. If data came back in a POST, only one will have the form data, leading to rather confusing results.

  • Comment on Re: Re: Undefined subroutine CGI::upload