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
Can we load binary extension dynamically?
Write the program to process a list of numbers.
What is 'rollback' command in perl?
What are scalars?
How do I replace every TAB character in a file with a comma?
Explain the difference between "my" and "local" variable scope declarations. ?
What are the different ways to run cgi?
How to deleting an existing file in perl programming?
How to convert strings into an array in perl?
Explain perl. What are the advantages of programming in perl?
Explain cpan?
Why is it hard to call this function: sub y { "because" } ?
How to print escaping characters inside a string in perl?
Mention the difference between die and exit in Perl?
How can we create perl programs in unix, windows nt, macintosh and os/2 ?