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
In Section
Seekers of Perl Wisdom