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  
Old 07-15-2007, 06:18 PM
vadivelanvaidyanathan vadivelanvaidyanathan is offline
D-Web Genius
 
Join Date: Feb 2007
Posts: 801
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
  #2  
Old 07-30-2007, 06:37 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 881
kingmaker is on a distinguished road
Send a message via MSN 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.
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 Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
new to frihost (local band) niber Introductions 1 07-05-2009 02:23 AM
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
What is the difference between a domain local group and a global group? karunagaran Operating Systems 2 07-18-2007 03:03 AM
global and local variables vigneshgets Perl 1 07-12-2007 09:35 PM


All times are GMT -7. The time now is 05:23 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0