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
If you want to empty an array then how would you do that?
Explain lexical variables.
What is perl programming?
Comment on array slicing and range operator
Define say() function in perl?
What are different data types that perl supports. Elaborate on them.
Is perl compiler or interpreter?
What is boolean context?
In Perl, what is grep function used for?
what is the function of Return Value?
Explain a tell function in perl?
Explain lists and ivalue?
Explain the meaning of perl one-liner?
What does redo statement do in perl?
How do I sort a hash by the hash key?