Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: if statement question

by toolic (Bishop)
on Dec 13, 2012 at 20:23 UTC ( #1008713=note: print w/replies, xml ) Need Help??

in reply to if statement question

If $search has a true value, the code block inside the curlies will be executed. If not, the code inside the curlies won't be executed.

Tip #2 from the Basic debugging checklist: display the contents of variables using print:

print ">>>$search<<<"; if ($search) { }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008713]
[1nickt]: Ya gotta love the google. If you set accept=".txt" in a form input field where type="file", Chrome will allow you to select local files with extensions like .pl, .pm, .yaml, .ini etc. Nice!

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-07-22 18:21 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (340 votes). Check out past polls.