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

Explain the difference between my and local?

Answer Posted / mahendra ratnakar

The variables declared with "my" can live only within the
block it was defined and cannot get its visibility
inherited functions called within that block, but one
defined with "local" can live within the block and have its
visibility in the functions called within that block.

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are stdin, stdout and stderr?

1084


List the files in current directory sorted by size ?

963


How to print escaping characters inside a string in perl?

885


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

962


How will you create a file in perl?

974


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

911


What does undef function in perl?

929


Explain ivalue in perl?

963


What is the difference between localtime() and gmtime() functions?

1021


What $! In perl?

946


Explain lexical variables.

927


Explain gmtime() function in perl?

959


What value is returned by a lone `return;’ statement?

1037


“Perl regular expressions match the longest string possible”. What is the name of this match?

925


what is Polymorphism in Perl?

946