Help for this page
my $rin = ""; vec($rin, fileno(STDIN), 1) = 1; ... if($isPiped){ #Do the data processing from pipe }
some-program|myprogram -parameters
my $rin = ""; sleep(5); ... if($isPiped){ #Do the data processing from pipe }