Question:

What gets printed by the following program?

my ($x) = foo();
print "$x\n";

sub foo {
  return wantarray ? 'list context' : 'scalar context';
}

Answers:


Keywords:

© 2017 QuizBucket.org