in reply to Re: improov mein k0den
in thread improov mein k0den
Nice idea, but...
Watch what happens on Windows*:
C:\>perl 607274.pl Cannot write to terminal: No such file or directory at 607274.pl line +12
A check of the IO::Prompt man page splains that this means
your environment has no /dev/tty available, in which case there isn't much you can do with this module. Sorry.Diving into the module's source, we find that it is indeed rife with the following:
And yet, inexplicably (ironically?), the documentation's DEPENDENCIES, INCOMPATIBILITIES, and BUGS AND LIMITATIONS sections are coyly silent on this shameless OS bondage.open my $OUT, ">/dev/tty" or croak "Cannot write to terminal: $!";
Somehow this doesn't strike me as "perl best practices". Very disappointing.
* Not just Windows, but any other OS which doesn't represent its terminal in the filesystem via a file named /dev/tty. Which is most of them.
|
|---|