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 / sourisengupta

You can consider "my" as local and "local" as global
variable like C,C++.

The scope of "my" lies between the block only but if we
declare one varable global then we can asccess that from
the outside of the block also.

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it hard to call this function: sub y { "because" } ?

962


What is v-strings?

1067


Mention what is cpan?

1017


Explain the arguments for perl interpreter.

1247


Write a script to reverse a string without using perl's built in functions?

989


Explain returning values from subroutines?

958


Explain use of ‘my’ keyword in perl?

937


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

1067


Explain socket programming in perl?

912


What is posix in perl?

942


How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.

2232


You want to print the contents of an entire array. How would you do that?

969


what is CPAN?

986


What are the different string manipulation operators in perl?

912


How to do comment in perl?

951