close(STDIN); open(STDIN,"<","/dev/tty") or die "Can't reopen STDIN from /dev/tty: $ +!";
I don't know if it's any better or worse than using a new filehandle, but it keeps me happy.
BTW: What would I do on a non-posix system?
In reply to Re^2: the greedy diamond, or leggo my STDIN
by headybrew
in thread the greedy diamond, or leggo my STDIN
by headybrew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |