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 does init 5 and init 0 do?

0 Answers  


Explain the different types of data perl can handle.

0 Answers  


Comment on data types and variables in perl.

0 Answers  


How can you replace the characters from a string and save the number of replacements?

0 Answers  


Define say() function in perl?

0 Answers  


Explain the functioning of conditional structures in perl.

0 Answers  


What is the peculiarity of returning values by subroutines in perl?

0 Answers  


Explain perl. When do you use perl for programming? What are the advantages of programming in perl?

0 Answers  


What is q (single q) operator in perl?

0 Answers  


Explain the use of 'my' keyword in perl?

0 Answers  


How to create a package?

0 Answers  


How to prevent file truncation in perl?

0 Answers  


Categories