Re: formatting and writing to file: getting the params

2001-06-19 Thread Randal L. Schwartz
> "Roger" == Roger C Haslock <[EMAIL PROTECTED]> writes: Roger> You have >> foreach my $name ( $cgi->param ) >> {print "$name\t" . $cgi->param( $name ) . "\n"; >> } Roger> You have to be careful with CGI::param; it returns a scalar for a scalar, Roger> and an arrayref for a list. Not un

Re: formatting and writing to file: getting the params

2001-06-19 Thread Roger C Haslock
You have > foreach my $name ( $cgi->param ) > {print "$name\t" . $cgi->param( $name ) . "\n"; > } You have to be careful with CGI::param; it returns a scalar for a scalar, and an arrayref for a list. May I suggest something like my %params = $cgi->Vars; foreach (keys %params) { my $para

RE: formatting and writing to file

2001-06-19 Thread Grierson, Garry (UK07)
Are you outputting this to a HTML page? If so try replacing the new line "\n" code with the HTML "" command. Just a thought, Please ignore this if I'm being stupid... > -- > From: Teresa Raymond[SMTP:[EMAIL PROTECTED]] > Sent: Monday, June 18, 2001 6:17 PM > To: [EMAIL P