Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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?
[belg4mit]: I had \Q'd in one RE but not a subsequent one, doh
[talexb]: Programs writing programs. Neat stuff.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-04-25 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (460 votes). Check out past polls.