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 is a perl references?
What happens when you return a reference to a private variable?
Explain the different types of data perl can handle.
Explain join function in perl?
I have one question regarding to eval function. I know eval function is use for error checking but I am not able to understand below line. eval \'exec perl -S $0 ${1+\"$@\"}\' if 0; $0 for script name $@ set if error occur
How do I sort a hash by the hash value?
What is perl unshift array function?
how to extract pin_code,phone_number,year from text file using regular expressions in perl
What elements of the Perl language could you use to structure your code to allow for maximum re-use and maximum readability?
What is the importance of perl warnings? How do you turn them on?
Is there any way to add two arrays together?
What is perl push array function?