Re: Installing Curses Module?
- From: jl_morel@xxxxxxxxxx (Jean-Louis MOREL)
- Date: 25 Feb 2008 17:57:45 GMT
Dans l'article <47c2e0ae$0$24116$4c368faf@xxxxxxxxxxxxxx>,
jlowder@xxxxxxxxxxxxxxxxxxxxxx a dit...
I'm running Windows XP SP2, with Perl 5.8.8 (Build 819).
Changing the constructor removed the error message, however the program
never appeared. The Perl command line interpreter was running, but
nothing ever showed up. When commenting out the ComboBox creation my
app showed up just fine. The test app does the same thing - no errors,
just never shows up on my screen.
Could there be some kind of conflict with Tk perhaps? I'm finding this
very unusual, especially since it seems to work just fine for you with
the "same" environment.
From your preceding posts, I suspect that you launch your scripts from anIDE. Right ?
Generally an IDE captures the output of your script, stores the result in
memory (or prints it in a window) and after that it writes in the console
buffer; so your script don't really see a console and you have an
inexpected result.
You can test if your script writes in a console by adding in the beginning:
BEGIN {
die "STDOUT is not open to a tty. Aborting!" unless -t STDOUT;
}
and the compilation aborts before the things goes wrong.
Don't use an IDE for your scripts with modules like Curses,
Win32::Console...etc.
Simply, open a console, cd to the directory where test.pl is and type the
command: perl test.pl
That's all ;-)
HTH
--
J-L.M.
http://www.bribes.org/perl
.
- References:
- Installing Curses Module?
- From: Jason Lowder
- Re: Installing Curses Module?
- From: sisyphus
- Re: Installing Curses Module?
- From: Jason Lowder
- Re: Installing Curses Module?
- From: Jean-Louis MOREL
- Re: Installing Curses Module?
- From: Jason Lowder
- Re: Installing Curses Module?
- From: Jean-Louis MOREL
- Re: Installing Curses Module?
- From: Jason Lowder
- Installing Curses Module?
- Prev by Date: Re: Installing Curses Module?
- Next by Date: HTML::Template not outputting
- Previous by thread: Re: Installing Curses Module?
- Next by thread: HTML::Template not outputting
- Index(es):
Relevant Pages
|
|