Документация
HTML CSS PHP PERL другое

Section 3.10.  Exercises

 
Previous
Table of Contents
Next

3.10. Exercises

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

3.10.1. Exercise 1 [25 min]

Read the list of files in the current directory and convert the names to their full path specification. Don't use the shell or an external program to get the current directory. The File::Spec and Cwd modules, both of which come with Perl, should help. Print each path with four spaces before it and a newline after it, just like you did for Exercise 1 of Chapter 2. Can you reuse part of that answer for this problem?

3.10.2. Exercise 2 [35 min]

Parse the International Standard Book Number from the back of this book (0596102062). Install the Business::ISB N module from CPAN and use it to extract the country code and the publisher code from the number.


Previous
Table of Contents
Next
© 2000- NIV