Monday 9 February 2015

Experienced Perl Scripting Interview Questions and Answers (Page 4)

Below are some important Perl Scripting interview questions which are asked in most MNC company interviews for beginners or professionals.

16. What is Perl Scripting?
Perl Scripting is one of the robust scripting languages in the IT market which is being used in “n” of fields. Perl is rich in finding Regular expressions and stands unique in all fields of application.
PERL is a scripting language. Since all scripting languages are interpreter based languages but not compiler based languages, we use for optimization of code in all application.

17. Why do we use PERL scripting?
We use PERL scripting because it is rich in all regular expressions and functional concepts, we can create our own rules to find out particular generalized pattern by using regular expression. PERL supports or compatible in almost 76+ Operating systems and supports more than 3000 modules, called as CPAN (Comprehensive Perl Archive Network) modules, can be downloaded free from www.cpan.org.

18. Why do you create an application for real time system in which processing speed is vital?
Perl is used in the following cases:
To process large text
When data manipulation is done by application
If you require fast developments expand to become libraries
To load database operations

19. Distinguish my and local?
The variables which are declared using “my” lives only in that particular block ion which they are declared and inherited functions do not have a visibility that are called in that block. The variables which are defined as “local” are visible in that block and they have a visibility in functions which are called in that particular block.

20. Why Perl patterns are not regular expressions?
Perl patterns have back references
By the definition, a regular expression should determine next state in finite automaton without extra money to keep in previous state. State machine is required by the pattern / ([ab] +) c1/ to remember old states. Such patterns are disqualified as being regular expressions in the term’s classic sense.
More Questions & Answers :-

No comments:

Post a Comment