in reply to Re^6: Capture a non-printable char and test what it is
in thread Capture a non-printable char and test what it is
G'day Alexander,
My intention was to show the variety of alternatives available. I would never expect the "... && ... && ..." to be used in a real program.
"# that's not perl: && ord($key) == 0o33"
Actually it is; however, it's very new. See "perl5340delta: New octal syntax 0oddddd".
I have Perl v5.34.0 installed. I checked my code with "perl -e 'use strict; use warnings; ...'" which would normally pick up things introduced since v5.8 (e.g. say). It's good to know that 0o33 passed on my installation without including a "use 5.034;" statement; I'll keep an eye on that in other code. Thanks for spotting this.
— Ken
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: Capture a non-printable char and test what it is
by choroba (Cardinal) on May 24, 2022 at 09:42 UTC | |
by kcott (Archbishop) on May 25, 2022 at 00:06 UTC | |
Re^8: Capture a non-printable char and test what it is
by afoken (Chancellor) on May 24, 2022 at 19:31 UTC | |
by Don Coyote (Hermit) on May 26, 2022 at 11:38 UTC |
In Section
Seekers of Perl Wisdom