Monk_perl has asked for the
wisdom of the Perl Monks concerning the following question:
Hi friends : All these 14 Q's are from my last year exam paper i took from library and i am trying to solve them ...i want to solve them in a very best way so if they will come in exam this time again then i would answer them most happyily. Please help me .
1 Describe the main features of perl .What are its characteristics which makes it suitable for
2 What is a file handle ? How they are similar to streams ?
3 What are scalar variables ?Discuss various types of variables used in perl with examples.
4 Describe named Unary and file operators with examples.
5 Write a perl program that asks the user to enter a name and a number n and prints the nth letter in the name.
6 what are global and scoped declarations in perl ? Write perl script to explain the same .
7 How we do loop control with next last and redo ? Where we should use them and where not ?
8 What are regular expressions ? Explain in detail its most important elements ?
9 Write a perl program which takes file name as arguments and counts lines in file with
(a) Letter X
(b) String the
10 What are subroutines ? How it differs from a procedure ? Explain with example how parameters are passed in subroutines.
11 Write a perl program which reads a file into a hash array.
12 Write a perl script which compares and concatenates two strings.
13 What for formats are used in perl ? How we can access formatting internals ?
14 What are hashes ? Describe all functions relevant to hashes.