Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
while (<SERVICES>) { chop; print FH "$_\n"; $temp = $c->param("e$."); if ($temp eq "e$.") { print FH "email 1\n"; } else { print FH "email 0\n"; } $temp = $c->param("el$."); #chomp($temp); $temp =~ s/\n//g; $temp =~ s/\r//g; print FH "$temp\n"; $temp = $c->param("s$."); if ($temp eq "s$.") { print FH "sms 1\n"; } else { print FH "sms 0\n"; } $temp = $c->param("sl$."); $temp =~ s/\n//g; $temp =~ s/\r//g; print FH "$temp\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: writing a config file from a html form
by merlyn (Sage) on Feb 25, 2007 at 21:20 UTC | |
by Anonymous Monk on Feb 25, 2007 at 21:28 UTC | |
|
Re: writing a config file from a html form
by rodion (Chaplain) on Feb 25, 2007 at 23:16 UTC |