Ticket #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: |
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
comment:4 Changed 4 years 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
comment:5 Changed 4 years ago by azawawi
My goals is quick fix these using Padre's shiny new Perl 5 Quick Fixes.
comment:7 Changed 4 years ago by azawawi
and this link is useful also:
http://www.perlmonks.org/?node_id=733201
Note: See
TracTickets for help on using
tickets.
