in reply to New to Programming and I have chose PERL

Hello, I think in the first if loop, you need to use "next;" instead of "last;"

Also, in the if loop matching 'h', you need to put a last statement in the end to exit out of while loop.

Another if loop can be added to match 'y'.

Also, you can combine all the if loops using elsif.

  • Comment on Re: New to Programming and I have chose PERL