in reply to Detect piped input
You can detect if the input is a terminal, which should tell you the corollary:
print 'pipe' unless -t;
|
---|
In Section
Seekers of Perl Wisdom
in reply to Detect piped input
You can detect if the input is a terminal, which should tell you the corollary:
print 'pipe' unless -t;
|
---|