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 / 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 |
What happens in dereferencing?
How do you set environment variables in perl?
How to convert arrays into a string in perl?
Distinguish my and local?
Why to use perl?
What is the use of '>>' in perl?
What are the options that can be used to avoid logic errors in perl?
Comment on array slicing and range operator
What is the main function of cookie server?
What purpose does each of the following serve: -w, strict, - T ?
What is a perl references?
How do I print the entire contents of an array with Perl?