in reply to Web form -- File

He who must not be named wrote:
...the information will be appended to a file on the server.

Appended how? The following meets your specs, but is probably useless:

#!/usr/bin/perl -wT use strict; use CGI; use Fcntl qw/ :DEFAULT :flock /; use Data::Dumper; my $q = CGI->new; my $log_file = 'some_file.log'; my %params = map { $_, [ $q->param( $_ ) ] } $q->param; open LOG, ">>", $log_file or die "Can't open $log_file for appendin +g: $!"; flock LOG, LOCK_EX or die "Can't get an exclusive lock on $l +og_file: $!"; print LOG Dumper( \%params ) or die "Can't print to $log_file: $!"; close LOG or die "Can't close $log_file: $!";

Your questions:

Not trying to be too flippant here. If you can give us more info, that would help.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.