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

How to do comment in perl?

0 Answers  


What is the function of cgiwrap in cgi programming?

0 Answers  


i have a folder called 'error' and in that, i have error log files which are generated by the build, now i want to findout the string 'error' from each log file and that error has to be copied into the another file called 'analysis'. how do you do this in perl?

5 Answers   HP,


How to convert strings into an array in perl?

0 Answers  


What can be done for efficient parameter passing in perl?

0 Answers  






how to get back up from private character editor which is saved in the format of .udf

0 Answers  


How to find the length of an array in perl?

0 Answers  


You want to add two arrays together. How would you do that?

0 Answers  


How do you find the length of an array?

0 Answers  


You want to read command-line arguements with perl. How would you do that?

0 Answers  


Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??

0 Answers  


“The methods defined in the parent class will always override the methods defined in the base class”. What does this statement means?

0 Answers  


Categories