- or download this
my $term;
if ($ENV{TESTING}) {
...
} else {
$term = Term::ReadLine->new('My Application');
}
- or download this
my $term;
if (-t STDIN) {
...
} else {
$term = Term::ReadLine->new('My Application', \*STDIN, \*STDOUT);
}
- or download this
my $term = Term::ReadLine->new('My Application', \*STDIN, \*STDOUT);
- or download this
use IO::Handle;
...
} else {
$term = *STDIN;
}