Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: STDIN Odd Bevahior in Linux Environmentsby liverpole (Monsignor) |
on Sep 23, 2009 at 21:52 UTC ( [id://797086]=note: print w/replies, xml ) | Need Help?? |
Hi bichonfrise74,
I've not seen that before, but if you try running the script utility (which spawns a new shell, and then records all I/O until you exit the shell, saving it to a specified textfile, or typescript by default), it might give you more clues about what's happening. For example:
In the above example, the backspace key worked as expected, which you can see very clearly when you edit the script file "output", as the line with the backspace is revealed to be:
Clearly it's doing a backspace, followed by a space (to erase the final 't' of 'text'), followed by another backspace. s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
In Section
Seekers of Perl Wisdom
|
|