Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Synchronizing STDERR and STDOUT

by shmem (Chancellor)
on Sep 21, 2006 at 11:27 UTC ( [id://574105]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    warn "warn";
    print "\n";
    __END__
    
  2. or download this
    qwurx [shmem] ~> perl -e 'open(STDERR,">&", STDOUT); do "blorfl.pl"' 1
    +>/dev/null
    qwurx [shmem] ~> perl -e 'open(STDERR,">&", STDOUT); do "blorfl.pl"' 2
    +>/dev/null
    foo
    warn at blorfl.pl line 5.
    
  3. or download this
    qwurx [shmem] ~> perl -le 'open(STDERR,">&", STDOUT); system "perl blo
    +rfl.pl"' 1>/dev/null   
    qwurx [shmem] ~> perl -le 'open(STDERR,">&", STDOUT); system "perl blo
    +rfl.pl"' 2>/dev/null   
    warn at blorfl.pl line 5.
    foo
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-23 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found