Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Check For null Arguments

by toolic (Chancellor)
on Mar 13, 2013 at 15:34 UTC ( #1023236=note: print w/ replies, xml ) Need Help??


in reply to Check For null Arguments

A quick fix might be to use this:

if ($Do_Dir eq '') {

But, if you're interested in why your code doesn't work... Tip #6 from the Basic debugging checklist, B::Deparse

if ("$Do_Dir" == 'null') {

warnings also generates a message to let you know there is a problem.


Comment on Re: Check For null Arguments
Select or Download Code
Re^2: Check For null Arguments
by rfleisch (Initiate) on Mar 13, 2013 at 15:47 UTC
    Thank You EVERYONE for taking the time to help me. Tweaking the "IF" statement to if (!$dir) did the trick :-) And YES, I'm reading/looking at "Basic debugging checklist" -Ray

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-08-30 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls