Contents
Exercise Perl
-
Hello World:
Run a "hello world" script,
displaying your name stored in a variable.
-
Regular Expressions:
Write a Perl script that
distinguishes valid from non-valid
email address read in form stdin
(some example addresses).
-
Variables, Operators and Loops:
Write a Perl script that
calculates an integer division
with an arbitrary number of digits.
Arguments are the two
integer values and the desired
number of digits in the result.
-
File IO:
Read the ASCII data file
and calculate the sum, mean and variance
for each line, for each column
and for all values in the file.
Try you script on the same data, but with a
data file containing random white spaces.