P is for Practical | |
PerlMonks |
Re^6: Unicode infinityby Anonymous Monk |
on Jul 02, 2024 at 14:19 UTC ( [id://11160314]=note: print w/replies, xml ) | Need Help?? |
If you can do this: perl -Mutf8 -wle 'use constant π=>3.141;use overload "sqrt"=>\&sr;sub sr{sqrt shift}print sr π' 1.77228665852903This seems reasonable: perl -Mutf8 -wle 'use constant π=>3.141;use overload "sqrt"=>\&√;sub √{sqrt shift}print √π' Unrecognized character \x{221a}
In Section
Seekers of Perl Wisdom
|
|