The strict Pragma and Words : Pragmas « Language Basics « Perl






The strict Pragma and Words

   

If your program disobeys the restrictions placed on it, it won't compile. 

#!/usr/bin/perl
# Program: stricts.test
# Script to demonstrate the strict pragma
use strict "subs";
$name = SS;             # Unquoted word
print "Hi $name.\n";

   
    
    
  








Related examples in the same category

1.Debug flag
2.Syntac of using a module
3.Use constant PI
4.The diagnostics Pragma
5.The warnings Pragma and the -w Switch