Yurttas/PL/SL/perl/F/03/01/01/comp 02.pl

From ZCubes Wiki
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) 1998 # All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. # # Pe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1# 
 2#  Copyright(C) 1998
 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, 1998.
11#  author : Salih Yurttas.
12#
13#  comp_02.pl
14#
15
16
17# some computations...
18
19f_a(2);
20
21# some more computations...
22
23f_a(4);
24
25# some more computations...
26
27f_b(4);
28
29# some more computations...
30
31f_b(2);
32
33sub f_a {
34  print "--> a : ";
35  chomp($a=<STDIN>);     
36  $a = $a + @_[0];
37  print "a = ", $a;
38  print "\n";
39}
40
41sub f_b {
42  print "--> b : ";
43  chomp($b=<STDIN>);     
44  $b = $b + @_[0];
45  print "b = ", $b;
46  print "\n";
47}