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 turn on Perl warnings? Why is that important?
Explain the different types of data perl can handle.
How to determine strings length in perl?
What is the use of '>>' in perl?
How to prevent file truncation in perl?
What $! In perl?
Explain 'grep' function.
List all the features of perl programming?
Explain the arguments for perl interpreter.
how to extract pin_code,phone_number,year from text file using regular expressions in perl
What does localtime() do in perl?
What is the difference between single (') and double (") quote in a string in perl?
What are prefix dereferencer? List them.
Explain tk?
How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?