My Perl Quiz

The ultimate place to learn Perl!

Question #48: What gets printed?

my $var = 1;
$main::var = 2;

if ($var == $main::var) {
  print 'true';
} else {
  print 'false';
}