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 does localtime() do in perl?
Perl uses single or double quotes to surround a zero or more characters. Are the single(' ') or double quotes (" ") identical?
What does undef function in perl?
How do you set environment variables in perl?
Mention how many ways you can express string in Perl?
Explain perl.
How do I replace every TAB character in a file with a comma?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
Explain the different types of data perl can handle.
What are the advantages of programming in perl?
Explain what is STDIN, STDOUT and STDERR?
what are the two ways to get private values inside a subroutine or block?
Explain socket programming in perl?
Why should I use the -w argument with my Perl programs?
Give an example of using the -n and -p option.