Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 contemplating the Monastery: (9)
As of 2014-10-22 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (122 votes), past polls