in reply to Edit forms use CGI and JavaScript?

If you're using an array of *hashes* (which is how I interpreted "structs", you C programmer you =), you need to wrap "title", "url", and "body" in curly braces, so perl knows those are hash keys, not method calls (e.g. $foo->bar looks like $foo is an object of which bar() is a method).

HTH

Philosophy can be made out of anything. Or less -- Jerry A. Fodor

Replies are listed 'Best First'.
Re: Re: Edit forms use CGI and JavaScript?
by Mission (Hermit) on Apr 09, 2001 at 23:10 UTC
    HTH,

    Thanks. I thought about using hashes, but I wasn't comfortable using them with this project. I will consider that advice. As soon as I submited my question, I realized one of my mistakes. The code should have been written without the '=':

    $news[$selectTitle]->title($query->param('EditTitle'));

    I made the same mistake on Friday, and apparently hadn't learned my lesson yet. Thanks for the help. I still may consider the hashes. They seem more straight forward.

    - Mission
    "Heck I don't know how to do it either, but do you think that's going to stop me!"