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

If you want to empty an array then how would you do that?

1036


Explain lexical variables.

894


What is perl programming?

961


Comment on array slicing and range operator

901


Define say() function in perl?

904


What are different data types that perl supports. Elaborate on them.

980


Is perl compiler or interpreter?

889


What is boolean context?

927


In Perl, what is grep function used for?

1011


what is the function of Return Value?

999


Explain a tell function in perl?

917


Explain lists and ivalue?

892


Explain the meaning of perl one-liner?

1000


What does redo statement do in perl?

974


How do I sort a hash by the hash key?

873