Interview questions

Cgi Perl interview questions – page 2

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

  1. Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.

  2. In CPAN module, name an instance you use.

  3. How can information be put into hashes?

  4. "Perl regular expressions match the longest string possible". What is the name of this match?

  5. How can memory be managed in Perl?

  6. How the interpreter is used in Perl?

  7. What is use of '->' symbol?

  8. What is the difference between die and exit in perl?

  9. What is the easiest way to download the contents of a URL with Perl?

  10. What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?

  11. How do you you check the return code of a command in perl?

  12. What is -> symbol in perl?

  13. Does Perl have reference type?

  14. How to dereference a reference?

  15. How do you find the length of an array?

  16. How do I generate a list of all .html files in a directory?

  17. How do you match one letter in the current locale?

  18. How do I print the entire contents of an array with Perl?

  19. Why do you use Perl?

  20. Why should I use the -w argument with my Perl programs?

  21. How do I send e-mail from a Perl/CGI program on a Unix system?

  22. How do I read command-line arguments with Perl?

  23. How to read file into hash array ?

  24. How to read from a pipeline with Perl

  25. How do I sort a hash by the hash key?

  26. How do I replace every character in a file with a comma?

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

  28. How do I sort a hash by the hash value?

  29. When would `local $_' in a function ruin your day?

  30. Why aren't Perl's patterns regular expressions?

Companies that ask Cgi Perl questions