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



What is the difference between having a parenthesis after module name and without parenthsis afte..

Answer / ankur mundhada

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.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

What happens in dereferencing?

1 Answers  


How do you set environment variables in perl?

1 Answers  


How to convert arrays into a string in perl?

1 Answers  


Distinguish my and local?

1 Answers  


Why to use perl?

1 Answers  


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

1 Answers  


What are the options that can be used to avoid logic errors in perl?

1 Answers  


Comment on array slicing and range operator

1 Answers  


What is the main function of cookie server?

1 Answers  


What purpose does each of the following serve: -w, strict, - T ?

2 Answers  


What is a perl references?

1 Answers  


How do I print the entire contents of an array with Perl?

1 Answers  


Categories