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

How can you use Perl warnings and what is the importance to use them?

1024


Comment on the scope of variables in perl.

962


Explain grooving and shortening of arrays and splicing of arrays?

949


What is perl I used for?

1000


How does polymorphism work in perl?

965


When does circular reference occur?

961


What is the use of -t?

1022


How can memory be managed in Perl?

1119


How the interpreter is used in Perl?

988


What are the benefits of perl in using it as a web-based application?

955


How do I sort a hash by the hash key?

965


Why to use perl scripting?

1065


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

1002


How do I debug a perl program?

1028


What is the difference between die and exit in perl?

1053