How can you create an object of a class in a package?
Answer Posted / bhagwat gupta
--Like you do in any perl programme.
package PackageName;
use RelativePath::ModuleName;# The Class as per your questn
...
...
my $object = ModuleName->new();
...
...
1;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How to read from a pipeline with Perl
What does undef function in perl?
What is perl unshift array function?
what is Polymorphism in Perl?
How will you open a file in a write-only mode in perl?
How to get help for perl?
What are the different ways to run cgi?
What are the various advantages and disadvantages of perl?
what is the function of Return Value?
What are the various file operations in perl. Explain with example.
What is automatic error handling in perl?
How to copy a file in perl?
Which operator in perl is used for the concatenation of two strings?
Why -w argument is used with perl programs?
You want to add two arrays together. How would you do that?