Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008713]
help
Chatterbox?
[LanX]: wot wot?
[thezip]: W0t n0t
[perldigious]: w4st3 n0t w0t n0t

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2017-03-24 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (305 votes). Check out past polls.