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
what is perl language?
What is the use of –w?
What are the logical operators used for small scale operations? Explain them briefly.
Which operator in perl is used for the concatenation of two strings?
Explain perl. When do you use perl for programming?
Explain about the applications of perl?
What are the steps involved when the cgi program starts running?
What is the use of -t?
What is the use of -n and -p options?
How do I do fill_in_the_blank for each file in a directory?
Write a program to download the contents from www.perlinterview.com/answers.php website in Perl.
Explain lists in perl?
what is the function that is used to identify how many characters are there in a string?
How to get help for perl?
How to read a single line from a file in perl?