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...


What is the difference between having a parenthesis after
module name and without parenthsis after module name??
i.e Package::Module();
and
Package::Module;



What is the difference between having a parenthesis after module name and without parenthsis afte..

Answer / ankur mundhada

Package::Module(); This will throw as error,

I think,the question should be as: What is the difference
between,
Package::MyModule qw(); # FIRST
and
Package::MyModule; # SECOND

# FIRST :- This will not import any subroutine from MyModule.
# SECOND :- This will import all the subroutine from the
MyModule.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?

0 Answers  


Explain string comparison operators in perl.

0 Answers  


Comment on array slicing and range operator

0 Answers  


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

0 Answers  


What is the use of -n and -p options?

0 Answers  


How to add elements in a hash in perl?

0 Answers  


Define say() function in perl?

0 Answers  


What is the difference between perl list and perl array?

0 Answers  


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

0 Answers  


Explain different types of perl operators.

0 Answers  


what are the steps involved in reading a cgi script on the server?

0 Answers  


When would `local $_' in a function ruin your day?

0 Answers  


Categories