CGI Perl Question:
Download Questions PDF

What is the difference between having a parenthesis after module name and without parenthsis after module name?
i.e Package::Module();
and Package::Module;

Answer:

Package::Module(); This will throw as error,

I think,the question should be as: What is the difference
between,
Package::MyModule qw(); # FIRST
and
Package::MyModule; # SECOND

# FIRST :- This will not import any subroutine from MyModule.
# SECOND :- This will import all the subroutine from the
MyModule.

Download CGI Perl Interview Questions And Answers PDF

Previous QuestionNext Question
What is the meaning of rigging?Write a Perl script to find a particular word in a paragraph?