AppendixÂ A.Â Answers to Exercises
This appendix contains the answers to the exercises presented throughout the book. Some exercises have additional resources in the Downloads section at http://www.intermediateperl.com/.
Answers for Chapter 1
We promised answers to the exercises, but thereâs not much to do for the first section.
To get a PAUSE account, which we explain in ChapterÂ 21, we visit http://pause.perl.org/ and follow the âRequest PAUSE accountâ link. After filling in the information, our application goes to the PAUSE admins for human inspection. We donât have to prove our worthiness; we just have to appear to be human (instead of being a company or a role) and not already have an account. Our application should be approved in a day or two, just in time for us to use it later when we need it.
Once our account is approved, weâll have an @cpan.org address with our account name. Our next step is possibly to create a gravatar (http://www.gravatar.com/) with that address. The CPAN search interfaces looks for a gravatar attached to our @cpan.org address when it wants to display an author picture. See, for instance, https://metacpan.org/author/BDFOY.
The http://www.intermediateperl.com/ website has additional material for this book and pictures of alpacas.
Answers for Chapter 2
The trick in this exercise is to let the modules do all of the
hard work. Itâs a good thing weâve shown you how to use modules! The
Cwd module (âcwdâ is an initialism ...