Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Capture a non-printable char and test what it is

by kcott (Archbishop)
on May 22, 2022 at 03:26 UTC ( #11144073=note: print w/replies, xml ) Need Help??


in reply to Re^2: Capture a non-printable char and test what it is
in thread Capture a non-printable char and test what it is

"How does \e represent the escape key? Where do you find that?"

If you'd bothered to run the short piece of code ++haukex provided, and pressed the escape key, you would have seen:

Press a key $VAR1 = "\e"; Escape pressed

Had you pressed the enter key:

Press a key $VAR1 = "\n";

I suggest you also read ++haj's post for additional information and alternative methods to use.

— Ken

Replies are listed 'Best First'.
Re^4: Capture a non-printable char and test what it is
by almsdealer (Acolyte) on May 22, 2022 at 17:13 UTC
    Yes, my mistake. I see that now.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11144073]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2022-08-10 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?