CGI Perl Interview Questions
Questions Answers Views Company eMail

What does undef function in perl?

527

What is stdin in perl?

548

What are perl variables?

530

What does the q{ } operator do?

521

How to access parameters passed to a subroutine in perl?

545

What are the advantages and disadvantages of perl language?

486

Explain gmtime() function in perl?

573

What is the use of '>>' in perl?

546

How to merge two arrays in perl?

527

How to do comment in perl?

582

What does localtime() do in perl?

573

What are perl strings?

518

What is posix in perl?

531

Explain the default scope of variables in perl?

521

Explain join function in perl?

539


Post New CGI Perl Questions

Un-Answered Questions { CGI Perl }

What is automatic error handling in perl?

507


Explain use of ‘my’ keyword in perl?

578


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

570


Where do we require ‘chomp’ and what does it mean?

520


How to convert arrays into a string in perl?

519






Differentiate between use and require, my and local, for and foreach and exec and system

489


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,

2271


How can you create anonymous subroutines?

549


What is the difference between perl array and perl hash?

526


What is perl push array function?

551


Explain the difference between die and exit in perl?

444


Explain lists in perl?

561


What are the advantages and disadvantages of perl language?

486


How to remove a directory in perl?

492


What is an interpolation in perl?

568