Ticket #52 (assigned enhancement)

Opened 2 years ago

Last modified 7 months ago

catch common errors by beginners

Reported by: szabgab Owned by: azawawi
Priority: major Milestone: Satisfy all the requirements of PerlMonks
Component: editor Version:
Keywords: Cc:

Description

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

Changed 22 months ago by szabgab

  • milestone set to Satisfy all the requirements of PerlMonks

Changed 21 months ago by szabgab

Changed 21 months ago by szabgab

a usual typo:

use warning;

(in singular)

Changed 20 months ago by szabgab

Though not what I thought of this node deserves special treatment:  http://www.perlmonks.org/?node_id=728683

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

Changed 13 months ago by azawawi

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

Changed 13 months ago by azawawi

  • owner set to azawawi
  • status changed from new to assigned

Changed 13 months ago by azawawi

and this link is useful also:
 http://www.perlmonks.org/?node_id=733201

Changed 12 months ago by Sewi

Most items done in r7818

Changed 7 months ago by daxim

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

Note: See TracTickets for help on using tickets.