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

What does localtime() do in perl?

1051


Perl uses single or double quotes to surround a zero or more characters. Are the single(' ') or double quotes (" ") identical?

969


What does undef function in perl?

1003


How do you set environment variables in perl?

1107


Mention how many ways you can express string in Perl?

1076


Explain perl.

984


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

1021


What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?

1068


Explain the different types of data perl can handle.

945


What are the advantages of programming in perl?

1098


Explain what is STDIN, STDOUT and STDERR?

1084


what are the two ways to get private values inside a subroutine or block?

988


Explain socket programming in perl?

963


Why should I use the -w argument with my Perl programs?

1007


Give an example of using the -n and -p option.

1064