'use strict' and subroutine : strict « Language Basics « Perl






'use strict' and subroutine

    

#!/usr/bin/perl -w

use strict;

setup;

sub setup {
    print "This is some program, version 0.1\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' with package
7.no strict 'refs';
8.The strict Pragma
9.Using the strict Pragma