| Other CGI Perl Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| my @array=('data1','data2');
my @array1=('data1','data2');
my ($i,$k);
$i=7;
$k=7;
while($i){
$array [++$#array] = 'ree';
$i--;
print "@array";
}
while($k){
push(@array1,'ree');
$k--;
print "@array1";
}
Are these two while loop are doing the same functionality ?
What may be the difference? | | 1 |
| Why do you program in Perl? | | 1 |
| What is the Common Gateway Interface? | | 2 |
| what is the procedure to define a user define module in your
perl application? | IBM | 1 |
| What arguments do you frequently use for the Perl
interpreter and what do they mean?
| | 2 |
| What is caller function in perl? | | 1 |
| 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 |
| What is a hash?
| Satyam | 6 |
| 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 | 2 |
| What is the difference between chop & chomp functions in perl? | Cap-Gemini | 5 |
| how to install a package in perl ????
| | 2 |
| Explain the difference between use and require? | | 3 |
| What does the command "use strict" do and why should you
use it?
| TCS | 2 |
| How to count no of occurrence of a unique patterns in perl?
| Ness-Technologies | 3 |
| How do you debug a Perl scripting ( at the compile time
error or run
time error) in Unix environment ?
| | 4 |
| What elements of the Perl language could you use to
structure your code to allow for maximum re-use and maximum
readability?
| | 1 |
| what r the different type of function in perl ??? | Symphony | 1 |
| while(my($key, $value) = each(%hash) ) { print "$key =>
$value\n"; }
my($key, $value); while(($key, $value) = each(%hash) ) {
print "$key => $value\n"; }
What is the different between these two code in case of "my"
usage ?
| | 1 |
| What are the characteristics of a project that is well
suited to Perl? | | 1 |
| How do you open a file for writing?
| | 4 |
| |
| For more CGI Perl Interview Questions Click Here |