Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: beginner scripting question re: if elsif else

by Dlamini (Novice)
on Oct 11, 2012 at 21:17 UTC ( #998555=note: print w/ replies, xml ) Need Help??


in reply to Re^2: beginner scripting question re: if elsif else
in thread beginner scripting question re: if elsif else

Yes, the first part of your code gathers information from the user, then the second part actually does something with it. The way you have it, it will ask all the questions, and get all the answers from the user BEFORE getting to the if/else section. Once it is in the if/else section, it will do as you suspect -- i.e. if it is snowing, then that satisfies the if condition and therefore the else conditions are skipped.


Comment on Re^3: beginner scripting question re: if elsif else
Select or Download Code
Re^4: beginner scripting question re: if elsif else
by jhumphreys (Novice) on Oct 11, 2012 at 21:28 UTC

    Dlamini-

    Thanks! That's just what I needed to know.

    j.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2014-07-31 23:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (255 votes), past polls