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 Perl do if you try to exploit the execve(2) race involving setuid scripts?
What are the various advantages and disadvantages of perl?
Suppose an array contains @arraycontent=(‘ab’, ‘cd’, ‘ef’, ‘gh’). How to print all the contents of the given array?
Explain '->' in perl?
What does the’$_’ symbol mean?
Explain arrays in perl.
What are the advantages of perl programming?
How to get help for perl?
Explain substr function in perl?
“The methods defined in the parent class will always override the methods defined in the base class”. What does this statement means?
What is perl pop array function?
Mention how many ways you can express string in Perl?
what are steps to do to lock the sony ericsson mobile with password?
Explain chomp?
How to remove a directory in perl?