I was wondering if I could use some globals variables while using strict pragma.
For example, I've tried to do this:
#!/usr/bin/perl -w
use strict;
sub print_global{
print "your global is: $global\n";
}
$global = 1234; #or even my $global = 1234;
print_global;
But as you can notice it doesn't work.
Are there any ways to define global variables when using strict pragma? (if any, of course)