11

INTRODUCTION TO PERL

Chapter Objectives
  • The structure of a Perl script
  • Executing Perl scripts
  • Types of data and methods of assigning values to them
  • Concatenating strings, repeating a string and comparing strings
  • The meaning and utility of current line ($_) and current line number ($.)
  • Lists and arrays in Perl
  • Working with lists—list manipulations
  • Working with files—file handling and processing
  • Remove the last character of a variable—the chop() and chomp() functions
  • Working with associative arrays
  • Decision making and loop control structures
  • Use of regular expressions to search and extract records having required patterns
  • Defining and using subroutines in Perl

Perl stands for Practical Extraction and Report Language. Larry Wall, the ...

Get Introduction to Unix and Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.