in reply to Warn if STDIN pipe is missing or unwanted
Why? If feels to me to go against the *NIX principles to worry about something like that. Perhaps this is an X/Y Problem, so if you could explain why you need this that would be useful.
If you need enough rope to shoot yourself in the foot, perhaps there's some trickery you can try like fileno(*ARGV)==fileno(*STDIN) or something, though I don't give any guarantees on that being reliable either. Also see IO::Interactive.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Warn if STDIN pipe is missing or unwanted
by Anonymous Monk on Jan 11, 2026 at 09:40 UTC | |
by haukex (Archbishop) on Jan 11, 2026 at 18:40 UTC | |
by Anonymous Monk on Jan 11, 2026 at 23:26 UTC | |
by haukex (Archbishop) on Jan 12, 2026 at 09:26 UTC |