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 the use of "stderr()"?
What is v-strings?
What is the difference between exec and system?
Explain the difference between declarations of 'my' and 'local' variable scope in perl?
Explain goto label, goto name, and goto expr?
How to make the following assignment, as arrayreference assignment ? my $arr_ref='[1,2,3,4,4,'elem']';
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
Why does Perl not have overloaded functions?
Explain what is STDIN, STDOUT and STDERR?
How do you set environment variables in perl?
What are prefix dereferencer?
How do I sort a hash by the hash value?