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
List the prefix dereferencer in Perl.
When would `local $_' in a function ruin your day?
“Perl regular expressions match the longest string possible”. What is the name of this match?
How to know whether a key exists or not in perl?
Does Perl have reference type?
How to close a file in perl?
What does redo statement do in perl?
Differentiate use and require?
What is the importance of perl warnings? How do you turn them on?
What are the arguments and what do they mean in perl programming?
Explain perl one-liner?
What are the arguements we normally use for perl interpreter?
Explain the meaning of closure in perl.
what are the three groups involved in information sharing?
How to prevent file truncation in perl?