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?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| 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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |