in reply to Loop Control : REDO
As an alternative, say print ... if $ARGV eq '-', then you'll only be prompting if you're actually reading from STDIN. The output-only results printing can be unconditional.
-- Randal L. Schwartz, Perl hacker
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Do not use diamond for STDIN
by Fatty Lumpkin (Acolyte) on Oct 29, 2001 at 20:48 UTC | |
by merlyn (Sage) on Oct 29, 2001 at 23:52 UTC |