Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my @clean = map { s/[\s,]//mg; $_ } @array2;
    
    is_deeply \@clean, \@array1;
    
  2. or download this
    use strict;
    use warnings;
    ...
    s/[\s,]//mg for @array2;
    
    is_deeply \@array2, \@array1;