PERL interview questions – page 2

50 questions. Tap “Show answer” to check yourself.

Advertisement
  1. What does Perl do if you try to exploit the execve(2) race involving setuid scripts?

  2. What are scalar data and scalar variables?

  3. What is Perl one-liner?

  4. How to turn on Perl warnings? Why is that important?

  5. I have a variable named $objref which is defined in main package. I want to make it as a Object of Class XYZ. How could I do it?

  6. How do you give functions private variables that retain their values between calls?

  7. How many ways can we express string in Perl?

  8. What happens when you return a reference to a private variable?

  9. What is hash in perl?

  10. Which of these is a difference between C++ and Perl?

  11. Why is it hard to call this function: sub y ?

  12. What is difference between "Use" and "require". In which case should "Use" be used and not "Require"?

  13. Advertisement
  14. What value is returned by a lone return; statement?

  15. Why are not Perls patterns regular expressions?

  16. How do I do fill_in_the_blank for each file in a directory?

  17. Why does Perl not have overloaded functions?

  18. How to Connect with SqlServer from perl and how to display database table info?

  19. What's the significance of @ISA, @EXPORT @EXPORT_OK %EXPORT_TAGS list & hashes in a perl package? With example?

  20. Explain the difference between "my" and "local" variable scope declarations. ?

  21. How to open and read data files with Perl

Advertisement