in reply to Please Help! This is a class assignment given to me.

If this is your very first experience with Perl you could take one step back and write a "Hello world" program. A hello World is a trivial program to print "Hello world." on your screen. Once you have achieved that you know how to enter the program and run it. In Perl the code is:

use strict; use warnings; print "Hello world\n";

If you can't get that to run you need to tell us what operating system you are using at least and how you have installed Perl.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond