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 the main function of fork() in cgi programming?
How would you ensure the re-use and maximum readability of your perl code?
Write a program to decode the data in the form using cgi programming
Explain the different types of data perl can handle.
Explain tk?
Write a program that shows the distinction between child and parent process?
What are the various file operations in perl. Explain with example.
How do you turn on the perl warnings?
what are prefix dereferencer and list them out?
what is the function that is used to identify how many characters are there in a string?
What is Perl?
What syntax is used for grep() function?
What are the various flags/arguments that can be used while executing a perl program?
Can inheritance be used in perl? Explain with the help of an example.
When would `local $_' in a function ruin your day?