in reply to save form

You aren't actually getting the return value from GetParams() anywhere, you need to do this at the end:
my $webparams = GetParams(); print FILE $webparams; close(FILE);
(instead of your while loop)

I think you're a little confused on the scope of variables and how subs return data. Try reading up on that.

C.