'use utf8' just assumes utf8 encoding to convert input bytes to character values. It does not change perls syntax - and so does not change the parsing of literals, nor does it change what values are accepted as strings without quoting.

So basically what you are asking for is that perl treat a specific character value (0x221e) as a numerical infinity (in all cases, or only in literals, or only in non-quoted literals, or only in a non-quated literals of one character in length?).

Note that the above has nothing to do with 'utf8', and would obviously break any code anytime a character has a value of 0x221e.

I guess what I'm saying is: 'Inf' is a string that can be treated as special case in numerical context. An alternative using other unicode characters would still need to be string of more than 1 character, it can't just be a one character because every individual character is already mapped to a numerical number.

Why does it make more sense for the inf unicode symbol to be treated as numerical infinity instead of... its unicode value? And if we do, where do we stop? How many other symbols should be treated special values instead of their unicode values? Should we treat 0x03C0 as 3.14159... ? At what point is your request really just 'perl should accept unicode symbologies as syntax'?

(these are genuine questions - I find this very interesting, hopefully this is not coming across wrong :-)


In reply to Re^3: Unicode infinity by sectokia
in thread Unicode infinity by NERDVANA

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.