Help for this page

Select Code to Download


  1. or download this
    #!user/bin/perl
    use warnings;
    ...
    my @array = (1, 2, 3, 4, 2, 1, 2, 0, 1, 0, 0);
    my @newArray = grep{!$_} @array;
    push @newArray, grep {$_} @array;