Workshop
Quiz
1: | If there is no package declaration in a Perl program or module, what namespace will subroutines and package variables wind up in?
|
2: | Which of the following is a valid way to end a module?
|
3: | If you export a subroutine name from a module into a program that already has a subroutine by that same name, which one runs when you call the subroutine? (Try it and see.)
|
Answers
A1: | a. Generally, anything not declared with my, and not following ... |
Get SAMS Teach Yourself Perl in 24 Hours THIRD EDITION now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.