The diagnostics Pragma : Pragmas « Language Basics « Perl






The diagnostics Pragma

   

This pragma enhances the warning messages to a more verbose explanation

use diagnostics;
print "Hello there';  # Unmatched quote
print "We are on line number ", __LINE__,"\n";

   
    
    
  








Related examples in the same category

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