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
There are two types of eval statements i.e. Eval expr and eval block. Explain them.
How can I display all array element in which each element will display on next line in perl ?
How many types of variable in perl?
Perl uses single or double quotes to surround a zero or more characters. Are the single(' ') or double quotes (" ") identical?
Explain which feature of PERL provides code reusability?
what is Perl one liner?
How does a “grep” function perform?
Can you add two arrays together?
List all the features of perl programming?
Comment on data types and variables in perl.
Explain chomp?
How to check the status of airplane mode (enable/disable) in perl for Android mobile?
How do I read command-line arguments with Perl?
Why should I use the -w argument with my Perl programs?
Explain lists ?