in reply to Re: Search element of array in another array
in thread Search element of array in another array

$Data::Dumper::Useqq = 1;

This is really amazing!

@allwords

$VAR9 = "hat\r";

@cleanwords

$VAR6 = "hat";

How can I get rid of the \r? I vaguely remember I had this problem before...

Replies are listed 'Best First'.
Re^3: Search element of array in another array
by Laurent_R (Canon) on Mar 26, 2015 at 22:49 UTC
    Probably this:
    s/\r//g;
    (if the variable if contained in $_), or, otherwise, something like this:
    $var =~ s/\r//g;

    Je suis Charlie.