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
Which functions in perl allows you to include a module file.
What are the steps involved in configuring a server using cgi programming?
What is a chop() function in perl?
What is perl dbi?
Explain gmtime() function in perl?
Is perl a case sensitive language?
When do you use perl programming?
Suppose an array contains @arraycontent=(‘ab’, ‘cd’, ‘ef’, ‘gh’). How to print all the contents of the given array?
What does Perl do if you try to exploit the execve(2) race involving setuid scripts?
What interface used in PERL to connect to database? How do you connect to database in Perl?
What is automatic error handling in perl?
Explain returning values from subroutines?
List the operator used in Perl?
How to read a single line from a file in perl?
What is the importance of perl warnings? How do you turn them on?