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