I would make sure you are using a post method. In the form tag put method=post action="script2.pl">. Because you seem to have left that out. Another thing I would try is after
use CGI;
create this object
my $q = new CGI;
then grabbing the fields would look like
my foo = $q->param('foo');
That is the way it is documented at CPAN. It looks like you did that on the first script and not on the second one.
--
BigJoeLearn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.