in reply to Undefined subroutine CGI::upload

Try recoding to only use the OO interface and change your use line to use CGI;. I remember reading that you shouldn't mix procedural and OO interfaces, though I'm not sure why.

------
We are the carpenters and bricklayers of the Information Age.

The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Undefined subroutine CGI::upload
by tilly (Archbishop) on Oct 05, 2003 at 01:57 UTC
    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.