Write a perl program that asks the user to enter a name and a number n and prints the nth letter in the name? Hint: substr
I read substr but i didn't see how it can be user operated program.
I think question asks the user to enter value of n to print the letter or character from the string defined in the program.
i want that program should ask the user on the command line to enter name and number n to print its corresponding letter, isn't it that i think about question ?
In reply to Re^2: New to perl
by Monk_perl
in thread New to perl
by Monk_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |