Search Question Papers

Perl interview questions and answers

Perl interview questions and answers

1. What arguments do you frequently use for the Perl interpreter and what do they mean?

2. What does the command ‘use strict’ do and why should you use it?

3. What do the symbols $ @ and % mean when prefixing a variable?

4. What elements of the Perl language could you use to structure your code to allow for

maximum re-use and maximum readability?

5. What are the characteristics of a project that is well suited to Perl?

6. Why do you program in Perl?

7. Explain the difference between my and local.

8. Explain the difference between use and require.

9. What’s your favorite module and why?

10. What is a hash?

11. Write a simple (common) regular expression to match an IP address, e-mail address, city-

state-zipcode combination.

12. What purpose does each of the following serve: -w, strict, -T ?

13. What is the difference between for & foreach, exec & system?

14. Where do you go for Perl help?

15. Name an instance where you used a CPAN module.

16. How do you open a file for writing?

17. How would you replace a char in string and how do you store the number of

replacements?

18. When would you not use Perl for a project?

One Response to Perl interview questions and answers

  1. Unknown says:

    Hello There,

    Fully agree on Perl interview questions and answers. We’re seeing a lot of projects tackle big complex problems but few seem to have taken into consideration and in particular reasons to adopt.

    Should I install Linux and if so what is the right one for gaming, coding and in generall, user friendly? Is it fast? Is it reliable? What distro should I use for the things I said above?
    Excellent tutorials - very easy to understand with all the details. I hope you will continue to provide more such tutorials.


    Many Thanks,
    Radhey

Leave a Reply

Powered by Blogger.