How can you create an object of a class in a package?
Answer Posted / vipul dalwala
Say Pachage is My Package
package MyPackage;
sub method() {
}
Then U can create Object
$myobject = new MyPackage();
and u can call any method of object like:
$myobject->method();
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is warn function in perl?
Which functions in perl allows you to include a module file.
Explain the meaning of subroutine?
Explain about typeglobs?
Create a function that is only available inside the scope where it is defined ?
What is the function of virtual documents in cgi programs?
How to open and read data files with Perl
Explain split function in perl?
How do you you check the return code of a command in perl?
How the interpreter is used in Perl?
Write syntax to use grep function?
What happens when you return a reference to a private variable?
Enlist the advantages of using c over perl?
What is the difference between use and require in perl programming?
How can you create anonymous subroutines?