CGI Perl Interview Questions
Questions Answers Views Company eMail

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

Wipro, Photon,

9 26887

Name an instance where you used a CPAN module?

TCS, IBM,

3 7784

How do you open a file for writing?

6 7514




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

2 10562

When would you not use Perl for a project?

IBM,

1 8351

What is a hash?

Photon, Wipro, Satyam,

6 8396

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

TCS, DELL, Cap Gemini, Electronic Data,

10 34400

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

AppLabs,

6 11562




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 5502

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 4504

What is the difference between module and package?

Symantec, EDS, IBM,

4 23280

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

IBM,

4 5132

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

IBM,

2 3987

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

IBM,

3 6833

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

ABC, Symphony,

1 4887


Post New CGI Perl Questions






Un-Answered Questions { CGI Perl }

what are steps to do to lock the sony ericsson mobile with password?

1041


Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??

1104


We all know private variables exist in perl. But do private METHODS exist in perl ? Eg ?

1224


How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?

1661


There is no strict data types in perl unlike in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"

1288






how to get back up from private character editor which is saved in the format of .udf

1138


package MYCALC; use Exporter; our @EXPORT = (); our @ISA = qw(Exporter); our @EXPORT_OK = qw(addition multi); our %EXPORT_TAGS = (DEFAULT => [qw(&addition)],Both => [qw(&addition & +multi)]); sub addition { return $_[0] + $_[1]; } sub multi { return $_[0] * $_[1]; } 1; Program: use strict; use warnings; my @list = qw (2 2); use Module qw(:DEFAULT); print addition(@list),"\n"; Above coding is my module MYCALC and the program which using this module, I have not exported any function using @EXPORT, but I have used the DEFAULT in %EXPORT_TAGS with the function addition, when I call this function from the main it says the error as,

1305


how to connect cisco switch uisng perl script

2368


How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.

1082


Why we use CGI?

1163


how to extract pin_code,phone_number,year from text file using regular expressions in perl

1126


how to create a flat file database as shown below s.no name age city phone 0 hema 22 Calcutta 4312542 1 hema 21 Bangalore 2344345 2 ganesh 25 delhi 2445454 3 kartik 45 pune 4312121 4 santosh 25 Hyderabad 2254231 5 kumar 25 mysore 2344567 6 gita 34 mangalore 6532123 7 gita 32 pune 2213456 Q1.print the details of the person who r from bangalore q2.Replace the city name managlore to pune q3.prints no of person having name gita and hema q4.print how many are of age 25.

954


How to check the status of airplane mode (enable/disable) in perl for Android mobile?

1832


I have one question regarding to eval function. I know eval function is use for error checking but I am not able to understand below line. eval \'exec perl -S $0 ${1+\"$@\"}\' if 0; $0 for script name $@ set if error occur

959