in reply to Unicode infinity

What's wrong with just doing something like:
perl -wE 'use strict; my %h = ("∞" => "Inf", "Inf" => "Inf"); my $x= $h{"∞"}; say $x / 5'

Replies are listed 'Best First'.
Re^2: Unicode infinity
by NERDVANA (Priest) on Jul 01, 2024 at 22:31 UTC
    That kind of defeats the convenience, no? Even for older perls, that's more to type than sub inf { 0+"Inf" } say inf / 5;