1
2
3
4
5
6
7
8
9
10
11
12
13
14
ads@andLinux:~/rubinius/code/work$ cat order.rb
$test = 0

def test_pp
  r= $test
  $test+=1
  r
end

p $test + test_pp
ads@andLinux:~/rubinius/code/work$ ruby order.rb
0
ads@andLinux:~/rubinius/code/work$ ../shotgun/rubinius order.rb
1