'use strict' with package : strict « Language Basics « Perl






'use strict' with package

    

#!/usr/bin/perl -w

use strict;

$main::x = 10;
print $main::x, "\n";

   
    
    
    
  








Related examples in the same category

1.use strict 'refs';
2.use strict 'subs';
3.use strict 'vars';
4.use strict Pragma
5.use strict;
6.'use strict' and subroutine
7.no strict 'refs';
8.The strict Pragma
9.Using the strict Pragma