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 does init 5 and init 0 do?
Explain the different types of data perl can handle.
Comment on data types and variables in perl.
How can you replace the characters from a string and save the number of replacements?
Define say() function in perl?
Explain the functioning of conditional structures in perl.
What is the peculiarity of returning values by subroutines in perl?
Explain perl. When do you use perl for programming? What are the advantages of programming in perl?
What is q (single q) operator in perl?
Explain the use of 'my' keyword in perl?
How to create a package?
How to prevent file truncation in perl?