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
How to open a directory in perl?
What are the options that can be used to avoid logic errors in perl?
how to connect cisco switch uisng perl script
Explain perl.
What is a chomp() function in perl?
What does the’$_’ symbol mean?
Write a program that shows the distinction between child and parent process?
explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.
What is the use of "stderr()"?
Explain split function in perl?
How to turn on Perl warnings? Why is that important?
What is “grep” function in perl?
How do I pass a command line argument in perl?
Can you add two arrays together?
What is the use of -n and -p options?