Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Which functions in perl allows you to include a module file.

982


What are the steps involved in configuring a server using cgi programming?

892


What is a chop() function in perl?

1003


What is perl dbi?

886


Explain gmtime() function in perl?

970


Is perl a case sensitive language?

1103


When do you use perl programming?

989


Suppose an array contains @arraycontent=(‘ab’, ‘cd’, ‘ef’, ‘gh’). How to print all the contents of the given array?

962


What does Perl do if you try to exploit the execve(2) race involving setuid scripts?

939


What interface used in PERL to connect to database? How do you connect to database in Perl?

986


What is automatic error handling in perl?

1040


Explain returning values from subroutines?

943


List the operator used in Perl?

969


How to read a single line from a file in perl?

961


What is the importance of perl warnings? How do you turn them on?

1034