#!/usr/bin/perl -w require 5.003; # Example: giving input to a perl script from the command line. if ($#ARGV == 1) { # Proceed if there are two items on the command line # we will assume both items are numbers and we add them. print "\n\n"; $x = $ARGV[0]; $y = $ARGV[1]; $z = $x + $y; print "\tIf x = $x and y = $y, then x + y = $z. So there.\n\n"; } else { print "\nUSAGE: ./input-cl.pl [First Number] [Second number] This will add your two numbers.\n\n";}