He Who Must Not Be Named asked if we had any suggestions.
Um, yes. The tired old saw of use strict needs to be brought out. Using warnings would be a good idea. What if one of those variables is undefined and the person submitting the form doesn't notice? Also, from what I can tell, the global variables are apparently being populated with one of your do statements. Ugh. That's a great way to obfuscate the data source and to ensure that your variables are more like to be misspelled. Further, you should factor out common code elements:
# this is too repetitive Tab(); Send("$DueDate"); Tab(); Send("$Period"); Tab(); Send("$Year"); Tab(); Send("$PermitNum");
Instead of the above, try this:
my @vars = ( $DueDate, $Period, $Year, $PermitNum ); foreach ( @vars ) { Tab(); Send( $_ ); }
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: Ghost fill in adobe forms
by Ovid
in thread Ghost fill in adobe forms
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |