Sounds like perl -d expects a terminal. You can provide it a fake terminal using IO::Pty. However, it only supports Windows under Cygwin.
In reply to Re: Unable to get terminal size
by ikegami
in thread Unable to get terminal size
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |