Help for this page

Select Code to Download


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