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
What are scalar data and scalar variables?
Explain socket programming in perl?
What does perl do in linux?
How to renaming a file in perl programming?
Explain the functioning of conditional structures in perl.
What are the options that can be used to avoid logic errors in perl?
What is the function of cgiwrap in cgi programming?
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
What is qq (double q)operator in perl?
What does `$result = f() .. g()' really return?
What does redo statement do in perl?
What is a perl references?
Explain the default scope of variables in perl?
What are different data types that perl supports. Elaborate on them.
What does delete function do in perl?