in reply to Array regex matching

try this:
my @values = map { s/\cM//g;$_ } $q->param($key);

Update: abigail-II noticed that my example was wrong. So here is a updated node.

Boris

Replies are listed 'Best First'.
Re: Array regex matching
by Abigail-II (Bishop) on Jan 13, 2004 at 09:53 UTC
    I bet you didn't test this. This will leave @values with a set of true/false values, depending whether a carriage return could be removed or not. If you want to use a map, do it like:
    map {s/\cM//g} my @values = $q -> param ($key);

    Abigail