How to determine if the output is screen or pipe.
Copy this code and paste it in your HTML
sub isOutputScreen {
  use POSIX;
  
return 0 if POSIX
::isatty( \
*STDOUT) eq "" ; # pipe} # end of isOutputScreen
Report this snippet
Comments
Subscribe to comments