coldfingertips has asked for the wisdom of the Perl Monks concerning the following question:
I decided putting the information for each engine in a txt file (see below) would be easiest as I can update information in the future without touching the script itself.
I just got stumped. I'll be passing a $url, $email, etc to all these engines but each engine calls it something else. So how would I know what variable the URL is supposed to go into if it's not 'url'? It could be V_add, url, URL, pageurl, webaddy, etc.NAME SUBMIT_URL FORM_ACTION FORM_NAME FORM_PARAMS HIDDEN_PARAMS S +UCCESS_TXT Aesop::http://www.aesop.com/cgi-bin/aesopadd.cgi::GET::1::EMAIL,URL::N +AME,terms=yes,VERIFIER=072-58::Thank you for using Amidalla::http://www.amidalla.com/add.htm::POST::1::addurl::::thank yo +u for
I can't think of ANY way to do that unless I did so in the txt file.
Now I think this would work. I could also setup a mysql database, too, which I flirted with for a few minutes. Then I thought that using Mysql to parse all the data (and then splitting some of the fields anyway) would be a bit slower than this text file, and less managable.NAME SUBMIT_URL FORM_ACTION FORM_NAME FORM_PARAMS HIDDEN_PARAMS S +UCCESS_TXT Aesop::http://www.aesop.com/cgi-bin/aesopadd.cgi::GET::1::EMAIL=$email +,URL=$url::NAME=$name,terms=yes,VERIFIER=072-58::Thank you for using Amidalla::http://www.amidalla.com/add.htm::POST::1::addurl=$url::::tha +nk you for
One last question. Occassionally there will be one checkbox for an acceptance of terms and the check has a value. Do I have to care what the value is or will www::mechanize click it anyway?
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing along fields to www::mechanize
by stonecolddevin (Parson) on Feb 28, 2006 at 03:36 UTC | |
|
Re: passing along fields to www::mechanize
by planetscape (Chancellor) on Mar 01, 2006 at 09:03 UTC |