Jul 05, 2024  
2024-2025 WWCC College Catalog 
    
2024-2025 WWCC College Catalog

CS 142 - Perl Programming


Credits: 5
LAB hours per week: 10
Introduction to programming in the Perl programming language. Topics include expressions and strings in Perl, arrays, functions, creating object oriented Perl scripts, interfacing with databases.
Course Outcomes:
  • Describe the use and basic syntax of Perl code, explain the role of the Perl interpreter, and use scalar variables, expression operators and the STDIN data type.
  • Control flow using Boolean expressions, logical operators and I/O redirection to create complex Perl scripts.
  • Demonstrate ability to use regular expressions to define and match patterns and strings in Perl.
  • Demonstrate ability to use Perl arrays and the functions that manipulate them.
  • Demonstrate ability to use Perl hashes and the functions that manipulate them.
  • Create and call subroutines to reuse code in Perl scripts.
  • Manipulate files and devices in Perl using I/O functions and filehandles.
  • Demonstrate ability to use and manipulate environment variables and command line arguments in Perl.
  • Demonstrate ability to use Perl packages and modules to facilitate code reuse.
  • Create object-oriented Perl scripts.
  • Demonstrate ability to use Perl to interface with databases.
  • Debug Perl programs and design Perl scripts to minimize bugs.
Course Topics:
  1. Introduction to Perl
  2. Flow Control in Perl
  3. Regular Expressions in Perl
  4. Arrays in Perl
  5. Hashes in Perl
  6. Subroutines in Perl
  7. File Input and Output
  8. Environment Variables and Command Line Arguments
  9. Packages and Modules in Perl
  10. Object-Oriented Perl
  11. Database Connectivity and Perl
  12. Debugging Perl Programs