Yurttas/PL/SL/perl/F/03/01/03/a 01.pl

Revision as of 18:57, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="perl" line start="1" enclose="div"># # Copyright(C) 2003 # All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. # # Pe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 1# 
 2#  Copyright(C) 2003
 3#  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4#
 5#  Permission from use, copy, modify, and distribute this
 6#  software and its documentation for EDUCATIONAL purposes
 7#  and without fee is hereby granted provided that this
 8#  copyright notice appears in all copies.
 9#
10#  date   : January 1, 2003.
11#  author : Salih Yurttas.
12#
13#  a_01.pl
14#
15
16
17sub add {
18  $_[0] + $_[1] + $_[2];
19}
20
21my $a = 3;
22my $b = 1;
23my $c = 9;
24
25print "a = $a\n";
26print "b = $b\n";
27print "c = $c\n";
28print "\n";
29
30my $t = add($a, $b, $c);
31
32print "t = $t\n";
33print "\n";