Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Script failed with certain value in the variable

by mr_ron (Chaplain)
on Mar 18, 2017 at 14:59 UTC ( #1185147=note: print w/replies, xml ) Need Help??


in reply to Script failed with certain value in the variable

The line that reads:

if (!defined(Suffix) && defined($version))

was almost certainly intended to be

if (!defined($suffix) && defined($version))

strict would have caught the mistake. !defined(Suffix) should always return false if the code runs. strict and warnings were also recommended by other replies.

Ron

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2022-11-29 05:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?