CGI Perl Interview Questions
Questions Answers Views Company eMail

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

Photon, Wipro,

9 31997

Name an instance where you used a CPAN module?

IBM, TCS,

3 9808

How do you open a file for writing?

6 10086

How would you replace a char in string and how do you store the number of replacements?

2 12082

When would you not use Perl for a project?

IBM,

1 9630

What is a hash?

Photon, Satyam, Wipro,

6 11767

What is the difference between chop & chomp functions in perl?

Cap Gemini, DELL, Electronic Data, TCS,

10 42096

Write a script for 'count the no.of digits using regular expressions in perl..

AppLabs,

6 14114

i have a folder called 'error' and in that, i have error log files which are generated by the build, now i want to findout the string 'error' from each log file and that error has to be copied into the another file called 'analysis'. how do you do this in perl?

HP,

5 7979

Can any1 tell me 2 write the script using perl script 2 looking at a log file 2 see wheather the test has passed or not.

TCS,

3 6438

What is the difference between module and package?

EDS, IBM, Symantec,

4 27768

How can you create an object of a class in a package?

IBM,

4 7285

what is the procedure to define a user define module in your perl application?

IBM,

2 5575

How would you trap error occurred in the perl program/file?

IBM,

3 8845

what r the different type of function in perl ???

ABC, Symphony,

1 6275


Post New CGI Perl Questions

Un-Answered Questions { CGI Perl }

How to prevent file truncation in perl?

492


What are the two ways to get private values inside a subroutine?

446


How many loop control keywords are there in perl?

551


How to compare two strings in perl?

533


Explain substr function in perl?

532






Write an example explaining the use of symbol tables.

556


What is perl push array function?

536


how to connect cisco switch uisng perl script

3377


What interface used in PERL to connect to database? How do you connect to database in Perl?

526


What is perl unshift array function?

515


what is the main function of fork() in cgi programming?

539


You want to add two arrays together. How would you do that?

474


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

551


Explain perl. What are the advantages of programming in perl?

556


What does the q{ } operator do?

506