Home | About Us | Contact Us | Terms Of Use
Perl is an interpreted language that is optimized for string manipulation, I/O, and system tasksPerl is a script programming language that is similar in syntax to the C language and that includes a number of popular UNIX facilities such as sed, awk, and tr. Perl is an interpreted language that can optionally be compiled just before execution into either C code or cross-platform bytecode. When compiled, a Perl program is almost (but not quite) as fast as a fully precompiled C language program. Perl is regarded as a good choice for developing common gateway interface (CGI) programs because it has good text manipulation facilities (although it also handles binary files). It was invented by Larry Wall.
PERL Interviews are getting tough these days as the technology grows faster. To get through the PERL interview one needs to update him/herself in a regular manner. Having said that, just before the interview, it is very important to have a quick glance of the reputed PERL questions and answers to make yourself comfortable during the interview process. This is where DoAnswers.com helps you in renewing yourself on PERL and various other technologies interview preparation.
11. what does 'qw(..)' mean? What's the use of it?
when do we use it? qw// is a construct which quotes words delimited by spaces. use it when you have a long list of wordes that are not quoted or you just don't want to type those quotes as you type out a list of space delimited words used to ref the elements of an arrray. @a = qw (1 2 3 4); vs ("1", "2", "3", "4");
12. what does the word '&myvariable' mean? what does the symbol '&' means? What's purpose of it?
&myvariable is calling a sub-routine. & is used to identify a sub-routine.
13. what does this mean '$^0'? tell briefly plse..
$^ - Holds the name of the default heading format for the default file handle. Normally, it is equal to the file handle's name with _TOP appended to it.
14. what does this mean :
'$_' ? default variable in Perl.
15. what does this symbol mean '->'
reference the method of a module. use Net::Telnet; my $q = new Telnet (); $q->cmd('adkfjdk');
16. what is a DataHash(). What does it mean? and for what purpose it is used??
In Win32::ODBC, DataHash() function is used to get the data fetched through the sql statement in a hash format.
17. what is a subroutine?
A subroutine is like a function ... called upon to excecute a task.
18. What is CPAN ? What are the modules coming under this?
CPAN ic Comprehencive Perl Archive Network. Its a repository contains thousands of Perl modules, source and documentation, and all under GNU/GPL or similar licence. you can go to www.cpan.org for more details. Some Linux distributions provide a tool named "cpan" with wich you can install packages directly from CPAN
19. What is difference between perl and jsp.What are the Advantages
I think the question should be diff bet'n perl CGI and jsp...both are diff things why should u comparing them.. hv u asked this question in some interview :) or u know both and thinkin which one to use.lemme rit some diffWith JSP, if the code inside a page gets too big, or if you want to use it elsewhere, you can cut it out, make it into a Java class, and invoke it from anywhere in your application (even not from a page). With Perl, you're stuck inside the HTML box.Java programmers (as opposed to hackers or HTML monkeys) appreciate the importance of a clean language with complex OO data structures and strong typing.and we can also say ther are more ppl who are known to JAVA then Perl/PHP... and if u JAVA guy and getting same look and feel for Web (jsp) then why perl/PHP...above comment shows am against perl :) but am not.. perl is my fav. language... and i dont want to rit 1000 lines abt it now...
20. What is hash in perl?
A hash is like an associative array, in that it is a collection of scalar data, with individual elements selected by some index value which essentialyl are scalars and called as keys. Each key corresponds to some value. Hashes are represented by % followed by some name.