Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

The most common errors and warnings in Perl

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

Help for this page

Select Code to Download

  1. or download this
    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/ line 7
    Argument "2x" isn't numeric in addition (+) at t/files/hello_with_warn line 9.
  3. or download this
    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
    use strict;
    if ($x) {
        print "ok";
  6. or download this
    Global symbol "$x" requires explicit package name at t/files/missing_s line 7.
    syntax error at t/files/ line 7, near ") {"
    Execution of t/files/ aborted due to compilation e

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://733201]
Approved by McDarren
Front-paged by Arunbear
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2017-08-19 13:56 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (311 votes). Check out past polls.