Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Undefined subroutine CGI::upload

by dragonchild (Archbishop)
on Sep 30, 2003 at 16:48 UTC ( #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.


Comment on Re: Undefined subroutine CGI::upload
Download Code
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
Node Status?
node history
Node Type: note [id://295341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2015-07-07 00:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls