Intermediate Perl Exercises

  1. Write a function that returns 0 or 1 (false or true) if the argument is a valid email address or not. By valid, I just mean that it has the right format. You don't have to verify whether it's really a real address.
  2. Write a Perl script that opens the file passed to it as an argument and then repalces every URL with a link with the URL as the anchor as well as the address.
  3. You're now ready to create a scipt that parses through the workshop pages and makes an index of all of the h2-h5 headers with internal links, which is how I generated the indexes. (It's very time-saving, really.) Go for it.