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 / vipul dalwala

Say Pachage is My Package

package MyPackage;

sub method() {

}


Then U can create Object

$myobject = new MyPackage();

and u can call any method of object like:

$myobject->method();

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does 'do' statement do in perl?

999


How to convert strings into an array in perl?

984


What does -> symbol indicates in Perl?

975


Explain the meaning of perl one-liner?

1064


what is the difference between java and cgi?

1080


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

953


How to copy a file in perl?

993


Explain the different types of data perl can handle.

898


You want to download the contents of a url with perl. How would you do that?

877


what are steps to do to lock the sony ericsson mobile with password?

2205


What does localtime() do in perl?

1007


How to code in perl to implement the tail function in unix?

938


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

881


What are the different types of perl operators?

1079


How to turn on Perl warnings? Why is that important?

1072