in reply to Creating a browser based script to update a data file

Update: Mother warns of old Vars() method, so original post changed:

You could do:

#!/usr/bin/perl use warnings; use strict; use CGI; print "Content-type: text/html\n\n"; # from perldoc CGI my $query=CGI->new; print "<h2>Current Values</h2> $query\n"; #or #print Dump;
That would at least give you a way to test your html form fields, like 'file', with which you can experiment.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku

Replies are listed 'Best First'.
Re^2: Creating a browser based script to update a data file
by Your Mother (Archbishop) on Aug 05, 2010 at 16:29 UTC

    Vars is a compatibility method for the perl4 lib, IIRC and should be avoided (as should indirect method call on new). To dump your input, just use, drumroll... Dump. It formats form input into HTML lists and handles multiple values per key.