I thought in perl if you want to declare a global variable, you just use the 'our' keyword, like:
// my test script.pl:
our $g_age = 5;
print("Global age is: ", $g_age, "\n");
yeah but perl doesn't want to let that compile. What's the right way to do it? It doesn't make sense to be used like that anyway because $g_age wouldn't exist unless a() were executed anyway.