Introduction to Perl

Program sum.pl


#!/usr/bin/perl

$a = 2;
$b = 5;
$result = $a + $b;               #calculate sum
print "Result is: $result\n";    #print it

Note that:


Table of Contents.
Previous| Next.