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

Can we load binary extension dynamically?

886


Write the program to process a list of numbers.

915


What is 'rollback' command in perl?

900


What are scalars?

938


How do I replace every TAB character in a file with a comma?

920


Explain the difference between "my" and "local" variable scope declarations. ?

979


What are the different ways to run cgi?

907


How to deleting an existing file in perl programming?

845


How to convert strings into an array in perl?

897


Explain perl. What are the advantages of programming in perl?

966


Explain cpan?

907


Why is it hard to call this function: sub y { "because" } ?

871


How to print escaping characters inside a string in perl?

839


Mention the difference between die and exit in Perl?

1037


How can we create perl programs in unix, windows nt, macintosh and os/2 ?

831