Directing stdout of system command in Perl to filehandle
        Posted  
        
            by syker
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by syker
        
        
        
        Published on 2010-04-27T05:52:05Z
        Indexed on 
            2010/04/27
            5:53 UTC
        
        
        Read the original article
        Hit count: 527
        
mod-perl
With the open command in Perl, you can use a filehandle. However I have trouble getting back the exit code with the open command in Perl.
With the system command in Perl, I can get back the exit code of the program I'm running. However I want to just redirect the STDOUT to some filehandle (no stderr).
Is that possible?
© Stack Overflow or respective owner