Help for this page

Select Code to Download


  1. or download this
    my @array2 = map { s/\s+//g; $_ } @array1;
    
  2. or download this
    my @array2 = map { (my $x = $_) =~ s/\s+//g; $x } @array1;