In this code, the first line “#!/usr/bin/perl”, is the path to the Perl interpreter. Though having a Perl IDE is useful, we can even write the Perl code in a notepad and then execute the program using the command prompt.įor Example, consider the following simple program to print “Hello, World!!” #!/usr/bin/perl Q #5) Explain the execution of a program in Perl.Īnswer: Perl is portable and Perl programs can be executed on any platform. Powerful text manipulation API including Regular expressions.Supports high-level intrinsic operations – Example: stack Push/pop.Non-scalars can be used as loop indices.Can return non-linear types likes arrays etc.No distinction between the types of variables.Q #4) Explain the various characteristics of Perl.Īnswer: Enlisted below are the various Characteristics of Perl: Perl has too many features that can be exhaustive for a programmer to comprehend.Īnswer: Perl is used in a mission-critical project – like the defense industry. Although it allows us to write high-level code, we cannot write complex code using Perl. The main disadvantage of Perl is that as it is an interpreted language, the execution speed is quite slow. For example, we can import CPAN modules for database support in the Perl program. We can include various open-source packages and modules in a Perl program for any additional functionality. Currently, it can run on more than 100 platforms. Perl program is interpreted on a statement-by-statement basis. Q #2) What are the various advantages and disadvantages of Perl? Using Perl, we can write powerful and efficient code that can be used in mission-critical projects.įurther reading => Scripting languages vs programming languages It’s a powerful scripting language and is rich in features. Enlisted below are the most frequently asked Perl Scripting Interview Questions that were answered by experts.Īnswer: Perl stands for “Practical Extraction and Reporting Language”.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |