IT Community - Software Programming, Web Development and Technical Support

Difference between my and local?

This is a discussion on Difference between my and local? within the Perl forums, part of the Software Development category; Explain the difference between my and local?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Perl

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-15-2007, 06:18 PM
vadivelanvaidyanathan vadivelanvaidyanathan is offline
D-Web Genius
 
Join Date: Feb 2007
Posts: 803
vadivelanvaidyanathan is on a distinguished road
Question Difference between my and local?

Explain the difference between my and local?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-30-2007, 06:37 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: Difference between my and local?

Both of them are used to declare local variables.
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.
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Local DNS Problem qaz555 Networking & Internet Connectivity 2 07-12-2008 11:07 PM
Access To Local Disk seesamjagan Flash Actionscript Programming 1 02-24-2008 08:34 PM
new to frihost (local band) niber Introductions 0 12-04-2007 12:26 AM
Local Delivery queue vigneshgets Operating Systems 1 07-18-2007 03:48 AM
What is the difference between a domain local group and a global group? karunagaran Operating Systems 2 07-18-2007 03:03 AM


All times are GMT -7. The time now is 06:20 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0