http://www.perlmonks.org?node_id=11104981


in reply to Re: Currency symbols in variable names
in thread Currency symbols in variable names

Hi 1nickt,

It seems to be that unicode characters can be in variable names if they are letters and currency symbols are not considered as letters.

my $愛 = 4; # correct

my $s = '★'; # correct

my $★ = 'star'; # incorrect

However, it makes sense. What could we do with this?

sub $_to_¥ { ... }
Update: This one works ...

my $元 = 3;