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 the qx{ } operator do?

0 Answers  


How to concatenate strings with perl?

0 Answers  


Explain goto label?

0 Answers  


what is the function of Return Value?

0 Answers  


Write a program that explains the symbolic table clearly.

0 Answers  






How do I generate a list of all .html files in a directory?

0 Answers  


What is the function of virtual documents in cgi programs?

0 Answers  


Packing and Unpacking. Hi, I want to get output as 0x23400000345.... in the below example How to get? i tried out, but unable to get the answer $r=0x234; $t=0x345; $y=pack('L L',$t,$r); $x1=unpack('L!',pack('P',$y)); printf("\nThe value is $x1"); I didn't get constant output

1 Answers  


Why -w argument is used with perl programs?

0 Answers  


What is the usage of -i and 0s options?

0 Answers  


Comment on data types and variables in perl.

0 Answers  


Why do you program in Perl?

4 Answers  


Categories