The warnings Pragma and the -w Switch : Pragmas « Language Basics « Perl






The warnings Pragma and the -w Switch

   

#The -w switch warns you
#You can use the -w switch either as a command-line option to Perl, as

perl -w <scriptname>

#!/usr/bin/perl
# Scriptname: warnme
print STDOUT Ellie, what\'s up?;

$ perl -w warnme

   
    
    
  








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 strict Pragma and Words