...it does the job. But it isn't smart enough to prompt me if I forget to pipe a file into it. I'd really like some suggestions about how to check if piped data is waiting from STDIN so that I can prompt when it hasn't been called properly.while (<STDIN>) { chomp; print "$_\n"; }
In reply to Need help working with STDIN by Zio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |