Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: No warning when assiging to a variable

by sundialsvc4 (Abbot)
on Aug 14, 2013 at 19:20 UTC ( #1049467=note: print w/ replies, xml ) Need Help??


in reply to No warning when assiging to a variable

What you are asking for is a “perl lint,” which catches the stuff that is “technically legal but probably not what you wanted to do,” and I do not readily know of one.   Is there one?

Q:  Why do computer programmers have flat heads?

A:  (Slap!)   “D-oh!”


Comment on Re: No warning when assiging to a variable
Re^2: No warning when assiging to a variable
by GotToBTru (Priest) on Aug 14, 2013 at 21:19 UTC
    Perl Critic, I suppose, is supposed to be the perl lint. It says, on brutal mode:

    No package-scoped "$VERSION" variable found
    Return value of flagged function ignored - print
    Return value of flagged function ignored - print

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049467]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2015-07-03 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (51 votes), past polls