Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Weird Term::Prompt behaviour

by gargle (Hermit)
on Sep 20, 2012 at 12:01 UTC ( #994640=note: print w/replies, xml ) Need Help??


in reply to Re: Weird Term::Prompt behaviour
in thread Weird Term::Prompt behaviour

What I find weird is that the '\n' are gone when I pipe or use redirection. So come these two runs don't give the same output, that's what I would like to know :
[gargle@vlds204 reporting]$ ./test.pl password: x alfa beta
[gargle@vlds204 reporting]$ ./test.pl | tee test.txt x password: alfabeta[gargle@vlds204 reporting]$ [gargle@vlds204 reporting]$
--
if ( 1 ) { $postman->ring() for (1..2); }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994640]
help
Chatterbox?
[marto]: Illegal_opcode
[zentara]: marto arn't those NSA secrets? :-)
[marto]: not if you keep telling people :P
[zentara]: I had to disable hyperthreading on my machine because of that.
[Discipulus]: thanks marto but... at the moment this seems a bit beyond my faculties.. ;=)
[zentara]: a thread goes into a wait state after emitting a wait to all other threads. It locks up a machine completely.
[marto]: if you mean the recent hyperthreading bug, I don't think that's NSA related?
[zentara]: s/thread/cpu/
[marto]: xkcd://538
[Discipulus]: these opcodes mentioned in the wiki pages are the same opcode perl is translated into? or is just the same term but in different fields?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2017-07-28 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (428 votes). Check out past polls.