Yurttas/PL/SL/perl/F/11/00/04/a 00.pl

From ZCubes Wiki
Jump to navigation Jump to search
 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_00.pl
14#
15
16
17sub exchange() {
18  my $t = $x;
19  $x = $y;
20  $y = $t;
21}
22
23my $x = 4;
24my $y = 8;
25
26print "\n";
27print "0 / \n";
28print "$x, $y";
29print "\n";
30
31
32exchange();
33
34print "\n";
35print "1 / \n";
36print "$x, $y";
37print "\n";