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
Explain perl. When do you use perl for programming?
What is perl shift array function?
Explain the meaning of subroutine?
How do you give functions private variables that retain their values between calls?
Differentiate between arrays and list in perl.
How to compare two strings in perl?
Explain goto label?
Define operators used in perl?
What is the function of virtual documents in cgi programs?
Explain perl one-liner?
How can memory be managed in Perl?
Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??
How to code in perl to implement the tail function in unix?
What does the q{ } operator do?
How will you access an element of a perl array?