in reply to Quick 'n very dirty flash-variables updatescript

Ouch! You need to learn about CGI.pm. That would have reduced your program to about half its size, and eliminated the need for the 30 lines of cargo-culted ancient code.

Setting up your %formdata hash would have been as simple as:

use CGI qw(param); for (param()) { $formdata{$_} = param($_); }

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: Quick 'n very dirty flash-variables updatescript
by Coruscate (Sexton) on Apr 09, 2003 at 21:55 UTC

    Let's play golf ;). Mine:

    use CGI ':cgi-lib'; my %formdata = Vars;


    If the above content is missing any vital points or you feel that any of the information is misleading, incorrect or irrelevant, please feel free to downvote the post. At the same time, please reply to this node or /msg me to inform me as to what is wrong with the post, so that I may update the node to the best of my ability.

        ok, I read the perldoc. It seems I have been doing a lot of extra work indeed.

        I'll study the scripts of others better and pray to the big camel that I may become a better monk soon. ;)

        teabag chmod 666 *.*
        'cause everyone should have the right to read and write!