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
When do you use perl programming?
What is the difference between single (') and double (") quote in a string in perl?
In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?
What is the purpose of _package_ literal?
How to close a file in perl?
What is subroutine in perl?
List the data types that Perl can handle?
What are prefix dereferencer? List them.
How and what are closures implemented in perl?
What is the use of -t?
Mention the difference between die and exit in Perl?
What are the advantages of perl programming?
How do I sort a hash by the hash key?
What are the options that can be used to avoid logic errors in perl?
Show the use of sockets for the server and client side of a conversation?