Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: [Homework Question] Subroutines & References

by Hayest (Acolyte)
on Feb 11, 2015 at 16:30 UTC ( [id://1116351]=note: print w/replies, xml ) Need Help??


in reply to Re: [Homework Question] Subroutines & References
in thread [Homework Question] Subroutines & References

Thanks for the suggestion, I could use that (big time). It still doesn't execute with the correct bracket location, however. Looking into it now... I'm a complete beginner with programming, and Perl. This community has been nothing but helpful to me. Thanks again!

Replies are listed 'Best First'.
Re^3: [Homework Question] Subroutines & References
by SuicideJunkie (Vicar) on Feb 11, 2015 at 18:12 UTC

    "Correct bracket location" doesn't enter into it.

    The hint is that your final print statement is deeply indented after tidying. It is indented to the same level as the if statement, because that's where it goes based on the brackets you wrote.

    You didn't want it to be at the same level as the if statement, and that's the clue that you need to add the close brackets.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found