Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Undefined subroutine CGI::upload

by dragonchild (Archbishop)
on Sep 30, 2003 at 16:48 UTC ( [id://295341]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://295341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-20 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found