CGI Perl Interview Questions
Questions Answers Views Company eMail

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

Photon, Wipro,

9 33170

Name an instance where you used a CPAN module?

IBM, TCS,

3 10349

How do you open a file for writing?

6 10984

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

2 12552

When would you not use Perl for a project?

IBM,

1 9937

What is a hash?

Photon, Satyam, Wipro,

6 12689

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

Cap Gemini, DELL, Electronic Data, TCS,

10 43783

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

AppLabs,

6 14830

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 8825

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 7018

What is the difference between module and package?

EDS, IBM, Symantec,

4 28671

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

IBM,

4 7929

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

IBM,

2 6054

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

IBM,

3 9424

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

ABC, Symphony,

1 6592


Post New CGI Perl Questions

Un-Answered Questions { CGI Perl }

If you want to empty an array then how would you do that?

772


What is a chop() function in perl?

766


How can arrays be tied?

686


How will you open a file in a write-only mode in perl?

697


What is the use of "stderr()"?

779


What are hashes?

707


Explain the arguments for perl interpreter.

826


What is perl scripting?

672


What is Perl?

755


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

750


There are two types of eval statements i.e. Eval expr and eval block. Explain them.

706


How does polymorphism work in perl? Give an example.

644


How to compare two strings in perl?

709


What is cpan ? What are the modules coming under this?

685


What are scalar data and scalar variables?

826