Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Need help with Perl

  • 12-11-2011 7:27pm
    #1
    Closed Accounts Posts: 37


    I'm running a loop. And when the loop ends, I want to be able to count how many times the user input data.
    Anybody got any tips?


Comments

  • Registered Users, Registered Users 2 Posts: 3,357 ✭✭✭snappieT


    Outside of the loop, create a variable with a value of 0.
    Inside the loop, add 1 to the variable.
    At the end of the loop, the variable will have the number of times the loop ran (which I guess is what you want?)


  • Closed Accounts Posts: 37 Chavez


    Thank you! Working perfectly! :D


Advertisement