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 |
How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?
Explain string comparison operators in perl.
Comment on array slicing and range operator
How do I replace every character in a file with a comma?
What is the use of -n and -p options?
How to add elements in a hash in perl?
Define say() function in perl?
What is the difference between perl list and perl array?
You want to add two arrays together. How would you do that?
Explain different types of perl operators.
what are the steps involved in reading a cgi script on the server?
When would `local $_' in a function ruin your day?