Introduction and Basic Programming  
 
 

Week 1

Readings:

  • Skim Chapter 1 - Background on Perl
  • Read Chapter 2 - Scalar Data
  • Read Chapter 3 - Lists and Arrays

Key Concepts:

  • Scalars
  • Lists
  • Assignment
  • Basic control structures
  • Standard input and output
  • Scalar and list contexts

Exercises:

    From the book:
  • Chapter 2
  • Chapter 3
Write a program to accept a list of names on separate lines until end-of-input. Then prompt the user to issue one command (sort, reverse, concatenate) and perform the appropriate action printed to the terminal.


Files to Be Downloaded