#!/usr/bin/perl
my @arr = (3, 2, 1);
my %hash = (k1 => 'v1', k2 => 'v2');
if (@arr) {
if (%hash) {
for my $el (@arr) {
for (my ($key, $val) = each %hash) { }
}
} else {
}
} elsif (%hash) {
} else {
print "No luck, screw it!\n"; }
IyEvdXNyL2Jpbi9wZXJsCm15IEBhcnIgPSAoMywgMiwgMSk7Cm15ICVoYXNoID0gKGsxID0+ICd2MScsIGsyID0+ICd2MicpOwppZiAoQGFycikgewogICAgaWYgKCVoYXNoKSB7CgkJZm9yIG15ICRlbCAoQGFycikgewoJCQlrZXlzICVoYXNoOwoJCQlmb3IgKG15ICgka2V5LCAkdmFsKSA9IGVhY2ggJWhhc2gpIHsKCQkJCXByaW50ICIkZWwka2V5JHZhbFxuIjsKCQkJfQoJCX0KICAgIH0gZWxzZSB7CiAgICAJcHJpbnQgIiRfXG4iIGZvciBAYXJyOwogICAgfQp9IGVsc2lmICglaGFzaCkgewoJcHJpbnQgIiVoYXNoXG4iOwp9IGVsc2UgewoJcHJpbnQgIk5vIGx1Y2ssIHNjcmV3IGl0IVxuIjsKfQo=