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

There are two types of eval statements i.e. Eval expr and eval block. Explain them.

480


How can I display all array element in which each element will display on next line in perl ?

480


How many types of variable in perl?

551


Perl uses single or double quotes to surround a zero or more characters. Are the single(' ') or double quotes (" ") identical?

521


Explain which feature of PERL provides code reusability?

727






what is Perl one liner?

534


How does a “grep” function perform?

597


Can you add two arrays together?

525


List all the features of perl programming?

509


Comment on data types and variables in perl.

504


Explain chomp?

511


How to check the status of airplane mode (enable/disable) in perl for Android mobile?

2608


How do I read command-line arguments with Perl?

603


Why should I use the -w argument with my Perl programs?

556


Explain lists ?

524