Opened 10 years ago

Last modified 6 years ago

#52 assigned enhancement

catch common errors by beginners

Reported by: szabgab Owned by: azawawi
Priority: major Milestone: Satisfy all the requirements of PerlMonks
Component: Identify Common Errors Version: 0.84
Keywords: Cc:


For example

  $x = //

  if ($x = //) {

Lack of use strict, should be also considered a beginners type error.

Lack of use warnings - I would consider it such but other don't.
but then you won't get alerted with such cases:

   if ($x = 42) {

Change History (11)

comment:1 Changed 10 years ago by szabgab

  • Milestone set to Satisfy all the requirements of PerlMonks

comment:3 Changed 9 years ago by szabgab

a usual typo:

use warning;

(in singular)

comment:4 Changed 9 years ago by szabgab

Though not what I thought of this node deserves special treatment:

Here is the content from that post:

  • forget "#" for a comment, unfortunately at the same line as i try to use a new function
  • searching the syntax error missing ";" at the end of the line.
  • missing closing "}"
  • Defining variables like $count and try to use variable $cont some lines down (and searching the typo for minutes

comment:5 Changed 9 years ago by azawawi

My goals is quick fix these using Padre's shiny new Perl 5 Quick Fixes.

comment:6 Changed 9 years ago by azawawi

  • Owner set to azawawi
  • Status changed from new to assigned

comment:7 Changed 9 years ago by azawawi

and this link is useful also:

comment:8 Changed 9 years ago by Sewi

Most items done in r7818

comment:9 Changed 8 years ago by daxim

#ifa=4 generates the incorrect warning about assignment within if. Reported by Coke on IRC.

comment:10 Changed 7 years ago by szabgab

  • Component changed from editor to Identify Common Errors

comment:11 Changed 6 years ago by bowtie

  • Version set to 0.84
Note: See TracTickets for help on using tickets.