Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: behaviour of STDOUT and STDERR

by marto (Bishop)
on May 14, 2009 at 11:10 UTC ( #764059=note: print w/ replies, xml ) Need Help??


in reply to behaviour of STDOUT and STDERR

See suffering from buffering:

#!/usr/bin/perl use strict; use warnings; $| = 1; print STDOUT "Output with Newline\n\n between"; print STDERR "FirstLine\nSecondLine\nThirdLine";

Does what you expect

Hope this helps

Martin


Comment on Re: behaviour of STDOUT and STDERR
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2015-08-01 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls