Quiz: Perl Patterns and Idioms
Test your knowledge of language patterns in Perl.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
What is the output of this variant of the Schwartzian transform?
my %extensions = (
'042' => 'Nick',
'000' => 'Nick',
'002' => 'Wesley',
'088' => 'Nick'
);
print for
map { " $_->[0]" }
sort { $a->[1] cmp $b->[1] }
sort { $a->[0] cmp $b->[0] }
map { [ $_ => $extensions{$_} ] }
keys %extensions;
A.
000 002 042 088
B.
088 042 002 000
C.
000 042 088 002
D.
002 000 042 088
1 / 5
...