Jump to content

Scope modifiers: Difference between revisions

m
add link to Delphi for pascal
m (add link to Delphi for pascal)
Line 326:
The modifiers are <code>local</code> and, for recent versions of Pari, <code>my</code>. See the User's Guide to PARI/GP.
<!-- needs expansion and clarification -->
 
=={{header|Pascal}}==
See [[Scope_modifiers#Delphi | Delphi]]
 
=={{header|Perl}}==
Line 394 ⟶ 397:
 
Usually, <code>my</code> is preferable to <code>local</code>, but one thing <code>local</code> can do that <code>my</code> can't is affect the special punctuation variables, like <code>$/</code> and <code>$"</code>. Actually, in perl 5.9.1 and later, <code>my $_</code> is specially allowed and works as you would expect.
 
=={{header|Perl 6}}==
Perl 6 has a system of declarators that introduce new names into various scopes.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.