Perl Basics, notes

/center>
General introduction to Perl
  • every time something new is mentioned demo the syntax
Introduction to simple variables
  • how to assign values to variables
  • "types" of variables
  • what is a value
Operators (+-*/.)
  • both with values and assignment
Printing to STDOUT with print
  • long demo of how to print (\n, \t)
Conditions with if
  • comparison operators
  • simple conditions, complex conditions with and/or
Looping with while
  • initiating the loop right
  • advancing through the loop as the last thing in the body of the loop
Gettting input from the keyboard (STDIN)

The importance of chomp to remove trailing newlines

Using defined to see if a variable is valid/defined.


This page was last updated         by Peter Wad Sackett