#!/usr/bin/perl use POSIX qw(isatty); if (isatty(STDIN)) { die("nope. not like that\n"); } while (<>) { print "$_\n"; }
In reply to Re: How do I Determine if my script is being piped to?
by kschwab
in thread How do I Determine if my script is being piped to?
by netguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |