ARGV-OrDATA

 view release on metacpan or  search on metacpan

t/pipe.pl  view on Meta::CPAN

#!/usr/bin/perl
use warnings;
use strict;

use Test::More tests => 3;

use ARGV::OrDATA;

while (<>) {
    is $_, "pipe $.\n", "read line $. from stdin";
}
ok eof *STDIN, 'end of stdin';

__DATA__
data 1
data 2



( run in 0.551 second using v1.01-cache-2.11-cpan-39bf76dae61 )