I am starting to use the LOCAL scope in ColdFusion 9. I am trying to figure when to use it and when NOT to use it. Can you tell me the advantages/disadvantages of using the LOCAL scope either way? Should LOCAL be used on every page, or just in functions?
WHICH SHOULD BE USED?
<cfset ImageHeight = 36>
<cfset ImageWidth = 42>
<cfoutput>
<img src="" height="#ImageHeight#" width="#ImageWidth#">
</cfoutput>
OR
<cfset LOCAL.ImageHeight = 36>
<cfset LOCAL.ImageWidth = 42>
<cfoutput>
<img src="" height="#LOCAL.ImageHeight#" width="#LOCAL.ImageWidth#">
</cfoutput>