Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by kcott (Archbishop)
on May 22, 2022 at 03:26 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-03-29 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found