Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    my @var = map {$arr[$_]} grep {$_ & 1} 1..$#arr;
    
    print "@var";
    
  2. or download this
    3 5 10 15