aboutsummaryrefslogtreecommitdiff
path: root/challenge-040/ruben-westerberg/perl5/ch-2.pl
blob: 39f3f68998e9d332e7d77ef7682b0789aca9be3c (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env perl
use strict;
use warnings;

my @a=(10,4,1,8,12,3);
my @i=(0,2,5);

$,=" ";
print sort {$a <=> $b} @a[@i];