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 |
while(my($key, $value) = each(%hash) ) { print "$key => $value\n"; } my($key, $value); while(($key, $value) = each(%hash) ) { print "$key => $value\n"; } What is the different between these two code in case of "my" usage ?
Which has the highest precedence, List or Terms? Explain?
How to find out the version of PERL being installed on your LINUX machine.
When does circular reference occur?
What is the importance of perl warnings?
Why we use CGI?
When would you not use Perl for a project?
Explain different types of perl operators.
Write a program to show the process of spawning a child process
write a perl script to find whether a given line of text is starting and ending with same word or not ???
Write a cgi program to show the header part?
How do I sort a hash by the hash key?