lacertus has asked for the wisdom of the Perl Monks concerning the following question:
The array @values holds multiple lines which are to be dumped to a flat file shortly after the above code snippet. I am trying to remove the *irritating* CR (^M) character from each line held within the array. Various attempts using modifications of the above code have proven to be fruitless. Advice as to where I stray is greatly appreciated.(my @values = $q->param($key)) =~ s/\cM//g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array regex matching
by Zaxo (Archbishop) on Jan 12, 2004 at 22:33 UTC | |
|
Re: Array regex matching
by ysth (Canon) on Jan 12, 2004 at 22:49 UTC | |
by Roy Johnson (Monsignor) on Jan 13, 2004 at 16:23 UTC | |
|
Re: Array regex matching
by borisz (Canon) on Jan 12, 2004 at 22:29 UTC | |
by Abigail-II (Bishop) on Jan 13, 2004 at 09:53 UTC |