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;
In reply to Array regex matching by lacertus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |