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 Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain which feature of PERL provides code reusability?

912


How interpreter is used in perl?

688


What are the different ways to run cgi?

679


Give an example of the -i and 0s option usage.

636


what is CPAN?

707


What are the advantages of perl programming?

746


What are perl variables?

696


Which functions in perl allows you to include a module file. State their differences.

704


you are required to replace a char in a string and store the number of replacements. How would you do that?

686


Why we use CGI?

2285


What are the functions that can be performed using cgi program?

661


What does init 5 and init 0 do?

712


What is the easiest way to download the contents of a URL with Perl?

736


what is Perl one liner?

696


what are steps to do to lock the sony ericsson mobile with password?

1984