Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

The most common errors and warnings in Perl

by szabgab (Priest)
on Dec 30, 2008 at 07:43 UTC ( [id://733201]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    print 3+$x;
    
    print "done\n";
    
  2. or download this
    Use of uninitialized value $name in concatenation (.) or string at t/f
    +iles/hello_with_warn.pl line 7
    Argument "2x" isn't numeric in addition (+) at t/files/hello_with_warn
    +.pl line 9.
    
  3. or download this
    #!/usr/bin/perl
    use warnings;
    
    $what = 42;
    
  4. or download this
    Name "main::what" used only once: possible typo at t/files/no_strict.p
    +l line 4.
    
  5. or download this
    #!/usr/bin/perl
    use strict;
    ...
    if ($x) {
        print "ok";
    }
    
  6. or download this
    Global symbol "$x" requires explicit package name at t/files/missing_s
    +emicolon.pl line 7.
    syntax error at t/files/missing_semicolon.pl line 7, near ") {"
    Execution of t/files/missing_semicolon.pl aborted due to compilation e
    +rrors.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://733201]
Approved by McDarren
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-09-16 11:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (22 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.