Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Use strict and warnings

by runrig (Abbot)
on Sep 08, 2001 at 04:09 UTC ( #111088=perltutorial: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    
  2. or download this
    Global symbol "$xxx" requires explicit package name at ./tst line 5.
    
  3. or download this
    # Change this:
    $string = "hello world";
    ...
    while ($sth->fetch) {
     print "F1: $field1 F2: $field2\n";
    }
    
  4. or download this
    use warnings;
    
  5. or download this
    #!/usr/local/bin/perl -w
    
    ...
    $^W = 1;
    # Or
    BEGIN { $^W = 1 }
    
  6. or download this
    
    # Change this:
    ...
     local $^W;
     $_[0] + $_[1];
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://111088]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2016-06-26 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (331 votes). Check out past polls.