Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 (Curate) 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 imbibing at the Monastery: (11)
As of 2014-12-26 18:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (174 votes), past polls