blob: e2d35a83a1b2b25bfca353b3da71f35604e5971c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
BEGIN
{
@a = 10;
@b = 5;
printf("a + b = %d\n", @a + @b);
}
END
{
printf("a - b = %d\n", @a - @b);
$c = @a + 2 * @b;
printf("c = %d, total = %d\n", $c, ($c - @b) / 5);
}
|