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!
  • Comment on Re^2: [Homework Question] Subroutines & References

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.