Perl Q/A Part 1

on 4:20 AM

Introduction
What arguments do you frequently use for the Perl interpreter and what do they mean?
Full Content

  1. What does the command ‘use strict’ do and why should you use it?
  2. What do the symbols $ @ and % mean when prefixing a variable?
  3. What elements of the Perl language could you use to structure your code to allow for maximum re-use and maximum readability?
  4. What are the characteristics of a project that is well suited to Perl?
  5. Why do you program in Perl?
  6. Explain the difference between my and local.
  7. Explain the difference between use and require.
  8. What’s your favorite module and why?
  9. What is a hash?
  10. Write a simple (common) regular expression to match an IP address, e-mail address, city-state-zipcode combination.
  11. What purpose does each of the following serve: -w, strict, -T ?
  12. What is the difference between for & foreach, exec & system?
  13. Where do you go for Perl help?
  14. Name an instance where you used a CPAN module.
  15. How do you open a file for writing?
  16. How would you replace a char in string and how do you store the number of replacements?
  17. When would you not use Perl for a project?

0 comments:

Post a Comment