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 |
|
#1
| |||
| |||
| Explain the difference between my and local? |
|
#2
| |||
| |||
| 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 |
| 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 |
Our Partners |