It should be easy to export the same constants
as Curses.pm, with an AUTOLOAD to croak when
it encounters a function that isn't yet
implemented. To use a script that uses Curses under Windows, just edit the file and substitute in
use Win32::Console::Curses.
But I don't like the idea of having to modify
the script file itself.
A lovely and not in the least evil trick would be to add "Win32/Console" to the environment
variable PERL5LIB: now any use Curses directive
will now look for it in that subdirectory!
Of course, as the package name isn't Curses, this wouldn't actually import anything. So we need a
magic
*Curses::import = \
line to alias the two import subroutines too...
Is this acceptable practise I wonder?
Win32::Console::Curses thoughts 0 Comments More | Login | Reply /