May 30, 2017, 4:02 AM
This appears to be a homework assignment so I will not give you the answer, but I will try to help.
Re: [iammgg] Two user inputs (String and Integer)
This assignment cannot be done without using one or more of Perl's string manipulation functions (index, length,split, substr).
Hint: A loop will not help you. The only test required is the one for "too big". If it is not too big, the number is the index of the letter.
If you are studying arrays, you probably want to split the string into an array of characters. If you are studying strings, use the functions with no array at all.
UPDATE: Added link for length.
(This post was edited by BillKSmith on May 30, 2017, 8:29 AM)