Programming Languages C Subjective
Mar 15, 2013

What is the difference between having a parenthesis after module name and without parenthsis after module name?
i.e Package::Module();
and Package::Module;

Detailed Explanation

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.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback