in reply to Re^2: Need help with writing to db file
in thread Need help with writing to db file

You are correct that you need to specifically import the Vars() method as it is not part of the ':standard' set. A simple use CGI 'Vars'; will do. My mistake as I always use the OO interface.

Without wanting it to look like sour grapes for you excellent correction of my incorrect code.....a pet peve of mine is people who do this:

use CGI ':standard'; my $q = new CGI; $q->method();

When you use the OO interface of CGI or CGI::Simple you don't need to import anything so just use CGI; is fine.

BTW - The reason that the CGI->Vars() code does not work relates to the convoluted way in which CGI.pm works and specifically to how it instantiates the internal object.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print