You are not logged in.
#1 2012-03-27 05:19:53
- AgentVinod12
- Agent Vinod
- From: India
- Registered: 2012-03-23
- Posts: 1,149
- Website
Perl Programming Interview Questions And Answers
Basic Programming :: Perl Programming Job Interview Questions and Answers
Perl Interview Questions and Answers will guide you that the Perl is a high-level, general-purpose, interpreted, dynamic programming language. Perl was originally developed by Larry Wall, a linguist working as a systems administrator for NASA, in 1987, as a general purpose Unix scripting language to make report processing easier. This Perl Interview Questions and Answers Guide will help you to get preparation of job in Perl or learn Pearl by these interview questions and answers.
1 Why do you use Perl?
2 How do I set environment variables in Perl programs?
3 Which of these is a difference between C++ and Perl?
4 How to open and read data files with Perl
5 How do I do fill_in_the_blank for each file in a directory?
6 How do I generate a list of all .html files in a directory?
7 What is Perl one-liner?
8 What happens when you return a reference to a private variable?
9 How to turn on Perl warnings? Why is that important?
10 What are scalar data and scalar variables?
11 Why should I use the -w argument with my Perl programs?
12 I want users send data by formmail but when they send nothing or call it from web site they will see error. codes in PHP like this: if (isset($HTTP_POST_VARS)){ .......... } else{ echo ("error lalalalal") } How it will look in perl?
13 What is the output of the following Perl program?1 $p1 = "prog1.java";2 $p1 =~ s/(.*)\.java/$1.cpp/;3 print "$p1\n";
14 Why are not Perls patterns regular expressions?
15 What does Perl do if you try to exploit the execve(2) race involving setuid scripts?
16 How do I do < fill-in-the-blank > for each element in a hash?
17 How do I sort a hash by the hash key?
18 How do you print out the next line from a filehandle with all its bytes reversed?
19 How do I send e-mail from a Perl/CGI program on a Unix system?
20 How to read from a pipeline with Perl
21 Why is it hard to call this function: sub y { "because" }
22 What does $result = f() .. g() really return?
23 Why does Perl not have overloaded functions?
24 What does read() return at end of file?
25 What does new $cur->{LINK} do? (Assume the current package has no new() function of its own.)
26 How do I sort a hash by the hash value?
27 How to read file into hash array ?
28 How do you find the length of an array?
29 What value is returned by a lone return; statement?
30 What is the difference between /^Foo/s and /^Foo/?
31 Does Perl have reference type?
32 How to dereference a reference?
33 What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
34 If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?
35 How do I do < fill-in-the-blank > for each element in an array?
36 How do I replace every <TAB> character in a file with a comma?
37 What is the easiest way to download the contents of a URL with Perl?
38 How to concatenate strings with Perl?
39 How do I read command-line arguments with Perl?
40 When would local $_ in a function ruin your day?
41 What happens to objects lost in "unreachable" memory..... ?
42 Assume that $ref refers to a scalar, an array, a hash or to some nested data structure. Explain the following statements:
43 How do you match one letter in the current locale?
44 How do I print the entire contents of an array with Perl?
45 How many ways can we express string in Perl?
46 How do you give functions private variables that retain their values between calls?
Offline
2012-03-27 05:19:53
- Advertisement
- Ads By Google
Re: Perl Programming Interview Questions And Answers
\n