c has asked for the wisdom of the Perl Monks concerning the following question:
i perused this but found that using tr/// or s/// simply removes the character, and doesnt really get rid of the newline. a post within the one i mentioned seemed to touch on this, but no one seemed to follow up on the thread.
currently, i have:
my @formfields = $query->param; for my $i(@formfields) { my $j = lc $i; $formdata{$j} = $query->param("$i"); $formdata{$j} =~ s/\cM//g; }
humbly -c
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
You may be making an error.
by metadoktor (Hermit) on Dec 29, 2001 at 05:32 UTC | |
by c (Hermit) on Dec 29, 2001 at 05:49 UTC | |
|
Re: Removing the ^M character, but also removing the newline
by ehdonhon (Curate) on Dec 29, 2001 at 05:11 UTC | |
|
Re: Removing the ^M character, but also removing the newline
by atcroft (Abbot) on Dec 29, 2001 at 22:56 UTC | |
|
Re: Removing the ^M character, but also removing the newline
by ton (Friar) on Dec 29, 2001 at 04:56 UTC | |
by c (Hermit) on Dec 29, 2001 at 05:14 UTC | |
by steves (Curate) on Dec 30, 2001 at 03:01 UTC | |
by steves (Curate) on Dec 30, 2001 at 03:05 UTC |