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 does 'do' statement do in perl?
How to convert strings into an array in perl?
What does -> symbol indicates in Perl?
Explain the meaning of perl one-liner?
what is the difference between java and cgi?
How will you open a file in a write-only mode in perl?
How to copy a file in perl?
Explain the different types of data perl can handle.
You want to download the contents of a url with perl. How would you do that?
what are steps to do to lock the sony ericsson mobile with password?
What does localtime() do in perl?
How to code in perl to implement the tail function in unix?
You want to add two arrays together. How would you do that?
What are the different types of perl operators?
How to turn on Perl warnings? Why is that important?