krakle said:
I pointed out exactly what
he did wrong... Using OO while CGI is called as function.
In the post I replied to, the only thing you "pointed out" was this:
The "error" that you're "correcting" above is not an error, nor does it
have anything to do with methods vs. functions. Calling Vars() in scalar
context is allowed, regardless of whether you call it as a method or as
a function.
The addition of "my" above *is* good advice - which is why I did not
criticize it in my reply.
You also said:
Read my other reply to this. Geesh.
.... and in that other reply:
And you are using a
scalar to stora Vars when it should be a hash to collect all.
That is false, and repetition won't make it true. Using a scalar to get
a hashref is valid, supported, useful, and - most importantly - documented.
Also from your earlier reply:
I see lot's of problems.. The format your using CGI.pm is OO yet you
call it as function.
You're wrong here too. Mark is *not* calling Vars as a function in the
code he posted. He is creating a query object $q, and calling $q->Vars()
as an instance method.
Your advice here is pointless - importing functions into the local name
space won't prevent OO the methods from working. There's no reason to do
so if you intend to use OO methods, that's true, but it won't cause the
type of error he's getting.
So drop the snide attitude and whiny "Geesh" comments please. If you
want people to follow your advice, post some advice worth following.
sherm--