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 can we create perl programs in unix, windows nt, macintosh and os/2 ?
What are the benefits of perl in using it as a web-based application?
Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.
What are numeric operators in perl?
I have one question regarding to eval function. I know eval function is use for error checking but I am not able to understand below line. eval \'exec perl -S $0 ${1+\"$@\"}\' if 0; $0 for script name $@ set if error occur
What are the various perl data types based on the context?
What is the closure in PERL?
Explain splicing of arrays?
How do I sort a hash by the hash key?
How to concatenate strings in perl?
How will you access an element of a perl array?
Explain lists in perl?
We all know private variables exist in perl. But do private METHODS exist in perl ? Eg ?
What is goto statement in perl?
What are prefix dereferencer? List them.