Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Script failed with certain value in the variable

by mr_ron (Chaplain)
on Mar 18, 2017 at 14:59 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-18 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found