Question:

What will be printed?

BEGIN {
    my $id = 0;
    sub nextval {
        $id++;
        return $id;
    }
}

my $id = 2;
$id = nextval();
print $id;

Answers:


Keywords:

© 2017 QuizBucket.org