Exercises






Exercises

You can find the answers to these exercises in "Answers for Chapter 15" in the Appendix.

Exercise 1 [15 min]

Take the Oogaboogoo library you created in Chapter 10, Exercise 1 and turn it into a module you can bring in with use. Alter the invoking code so that it uses the imported routines (rather than the full package specification, as you did before), and test it.

Exercise 2 [15 min]

Modify your answer to Exercise 1 to use an export tag named all. When the user uses all, your module should import all of the subroutine names.

use Oogaboogoo::date qw(:all);



 Python   SQL   Java   php   Perl 
 game development   web development   internet   *nix   graphics   hardware 
 telecommunications   C++ 
 Flash   Active Directory   Windows