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

How to read from a pipeline with Perl

987


What does undef function in perl?

901


What is perl unshift array function?

971


what is Polymorphism in Perl?

919


How will you open a file in a write-only mode in perl?

918


How to get help for perl?

949


What are the different ways to run cgi?

930


What are the various advantages and disadvantages of perl?

861


what is the function of Return Value?

1017


What are the various file operations in perl. Explain with example.

903


What is automatic error handling in perl?

992


How to copy a file in perl?

933


Which operator in perl is used for the concatenation of two strings?

968


Why -w argument is used with perl programs?

934


You want to add two arrays together. How would you do that?

836