Hi Guys,
Please can sombody help me in writing these two programs using perl ...
1. Write a complete Perl program which prompts the user to enter from the keyboard a sentence (consisting of at least three words, only the first word capitalized, sentence terminated with a period) and then echoes the sentence to the monitor but with the first letter of every word capitalized.
2. Write a complete Perl program that reads a text file (named "infile") containing one hundred Social Security numbers (9-digit positive integers), one per line; then writes an output file (named "outfile") containing the same data, but with the lines and the numbers in reverse order.
Any help will be highly appreciated ..
thanks,
krishan
Please can sombody help me in writing these two programs using perl ...
1. Write a complete Perl program which prompts the user to enter from the keyboard a sentence (consisting of at least three words, only the first word capitalized, sentence terminated with a period) and then echoes the sentence to the monitor but with the first letter of every word capitalized.
2. Write a complete Perl program that reads a text file (named "infile") containing one hundred Social Security numbers (9-digit positive integers), one per line; then writes an output file (named "outfile") containing the same data, but with the lines and the numbers in reverse order.
Any help will be highly appreciated ..
thanks,
krishan