Re: Installing Curses Module?



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 an
IDE. 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

.



Relevant Pages

  • Re: javaldx failed.
    ... mozilla start from default fails, ... error message. ... console in the icewm window but I resolved this for the console window ... get script ...
    (Debian-User)
  • Re: Form Security
    ... After all this, if no error message has been generated, the form contents are emailed to me. ... I'm no Linux guru, so I don't know what someone could do to cause problems with this script, other than spam me. ... What he's proposing is false security - which is worse than no security ...
    (comp.lang.php)
  • RE: Cannot Edit Logion Scripts
    ... remove the script that you would like to edit. ... Please capture a screenshot of the error message received on the client ... Microsoft Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: Error in script of Internet Explorer
    ... Uncheck the box to Display a notification about every script error. ... Windows Script 5.6 for Windows 2000 and XP ... Error Message When You Browse the Web: An Error Has Occurred in the Script ... Please reply to the newsgroup so others may benefit. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Sound file
    ... There shouldn't be any problems in the limited user accounts. ... The only other problem just about has to be with the attaching of the .wav ... > Common script errors messages can be eliminated by Clicking: ... >> click on the html file we get an error message and the wav file does ...
    (microsoft.public.windowsxp.accessibility)