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;

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to open a directory in perl?

1030


What are the options that can be used to avoid logic errors in perl?

898


how to connect cisco switch uisng perl script

3787


Explain perl.

893


What is a chomp() function in perl?

960


What does the’$_’ symbol mean?

949


Write a program that shows the distinction between child and parent process?

872


explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.

813


What is the use of "stderr()"?

956


Explain split function in perl?

927


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

1000


What is “grep” function in perl?

942


How do I pass a command line argument in perl?

922


Can you add two arrays together?

866


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

983