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

what is perl language?

971


What is the use of –w?

966


What are the logical operators used for small scale operations? Explain them briefly.

1028


Which operator in perl is used for the concatenation of two strings?

1042


Explain perl. When do you use perl for programming?

915


Explain about the applications of perl?

1015


What are the steps involved when the cgi program starts running?

959


What is the use of -t?

1021


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

1113


How do I do fill_in_the_blank for each file in a directory?

1004


Write a program to download the contents from www.perlinterview.com/answers.php website in Perl.

932


Explain lists in perl?

1010


what is the function that is used to identify how many characters are there in a string?

1002


How to get help for perl?

1037


How to read a single line from a file in perl?

1012