Quiz: Packages and References

Test your knowledge of Perl's packages and references with this quiz.

1

Where does the scope of a package end?

A)

At the next package declaration unless the file ends.

B)

At the end of the file and all subsequent package declarations are implicitly nested.

C)

At the next package declaration or end of the file, unless a package scope is limited by a block { ... }.

D)

None of the above

Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.