jerrygarciuh has asked for the wisdom of the Perl Monks concerning the following question:
my @labels = qw(topic words pass name textsize topicsize); my %form = map { $_ => $q->param($_) } @labels;
_____________________________________________________sub parse_form { my %FORM = map { $_, @{[ param($_) ]} > 1 ? [ param($_) ] : param( +$_) } param(); $name = $q->param('name') || "Agenda"; $name =~ s/\s/_/g; $words = $q->param('words'); $plain_words=$words; $words =~ s/\r\n/<BR>/g; while ($words=~ /<br>/gi ) {$line_break_count++} $topic= $q->param('topic'); $textcolor = $q->param('textcolor'); $textsize = $q->param('textsize'); $topicsize = $q->param('topicsize'); $textface = $q->param('textface'); $user = $ENV{'REMOTE_ADDR'}; $pass = $q->param('pass'); $edit = $q->param('edit'); if ($edit eq "done") { send_edit_form(); } elsif ($edit eq "yes") { make_edit_form(); } if ($line_break_count > $max_break_count) { seperate_page() } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: More Windows woes: Bad name after varname' at
by dash2 (Hermit) on Dec 13, 2001 at 15:39 UTC | |
|
Re: More Windows woes: Bad name after varname' at
by hakkr (Chaplain) on Dec 13, 2001 at 17:29 UTC |