Section 15.7. Exercises


15.7. Exercises

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

15.7.1. 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.

15.7.2. 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); 




Intermediate Perl
Intermediate Perl
ISBN: 0596102062
EAN: 2147483647
Year: N/A
Pages: 238

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net