Unicode variable names: Difference between revisions

Added Perl5
(Added Perl5)
Line 32:
2
</pre>
 
=={{header|Perl}}==
Requires Perl 5.8.1 at the minimum.
See http://perldoc.perl.org/utf8.html
 
<lang perl>my $Δ = 1;
$Δ++;
print $Δ;</lang>
 
One can have Unicode in identifier names, but not in package/class or subroutine names. While some limited functionality towards this does exist as of Perl 5.8.0, that is more accidental than designed; use of Unicode for the said purposes is unsupported.
 
One reason of this unfinishedness is its (currently) inherent unportability: since both package names and subroutine names may need to be mapped to file and directory names, the Unicode capability of the filesystem becomes important-- and there unfortunately aren't portable answers.
 
=={{header|Perl 6}}==
Anonymous user