in reply to Unicode infinity
If a string contains only letters, digits, and underscores without starting with a digit, you can omit quotes.
The string 'Inf' complies with that, so you can write my $x= Inf; instead of my $x= "Inf";
A string containing only a character with value of 0x221e does not meet the requirement, so you need to quote it.
There is a near zero chance of this being 'fixed' because perl code is not UTF-8 and its base rules around strings without quotes is not likely to ever include any character outside the base printable ASCII range of values 0x20 to 0x7E.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Unicode infinity
by NERDVANA (Priest) on Jul 01, 2024 at 04:55 UTC | |
by sectokia (Friar) on Jul 01, 2024 at 06:01 UTC | |
by NERDVANA (Priest) on Jul 01, 2024 at 23:53 UTC | |
by Anonymous Monk on Jul 02, 2024 at 04:43 UTC | |
by NERDVANA (Priest) on Jul 02, 2024 at 04:51 UTC | |
Re^2: Unicode infinity
by haj (Vicar) on Jul 01, 2024 at 06:51 UTC |