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

Re: OT: a bash shell oddity, need explanation

by no_slogan (Deacon)
on Feb 07, 2014 at 13:31 UTC ( [id://1073880]=note: print w/replies, xml ) Need Help??


in reply to OT: a bash shell oddity, need explanation

Interestingly,

print chr for qw(104 101 108 108 111 44 32 119 111 114 108 100 33 10)

results in hello, world!

Replies are listed 'Best First'.
Re^2: OT: a bash shell oddity, need explanation
by zentara (Archbishop) on Feb 07, 2014 at 17:33 UTC
    Thanks for that reminder. :-) After thinking about what you wrote, I did a "which ?1" as choroba indicated, and it found a file called z1, which contained the phrase "hello world". The question remains why the hex control characters remained in the shell. I believe roboticus is right about this, that the terminal's answerback setting got set by the Perl script, and it printed out z1 in binary or hex. Strange, but I understand now.

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-26 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found