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

Explain the meaning of perl one-liner?

1064


What is epoch time in perl?

938


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

956


How do I read command-line arguments with Perl?

1018


Explain about typeglobs?

937


What are prefix dereferencer? List them.

976


How to open a directory in perl?

1110


What is the difference between perl list and perl array?

865


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

997


Who created perl?

919


What does init 5 and init 0 do?

1014


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

868


How will you create a file in perl?

991


How to print escaping characters inside a string in perl?

899


What are scalar data and scalar variables?

1124