I think that the reason it is displaying the code instead of executing it is because you have a space before sub.
so it should be "sub { whatever }" not " sub {whatever}".
- Jonathan
so it should be "sub { whatever }" not " sub {whatever}".
- Jonathan