Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Win32::Console problemby hoffy (Acolyte) |
on Nov 23, 2009 at 01:40 UTC ( [id://808708]=perlquestion: print w/replies, xml ) | Need Help?? |
hoffy has asked for the wisdom of the Perl Monks concerning the following question: Good morning all. This is my first question/post/etc here, so please forgive me if I completely get it all wrong! OK, I am having a little bit of an issue with some code developed for a Windows environment, that is not behaving as it should. The code was originally developed by another person using active states distribution of V5.6 (where it worked just fine!) and relates to (as far as I can see) the use of the Win32::Console module What is supposed to happen is a question is supposed to be displayed in the cmd window, which the user adds input to, another question asked, new input, etc. The input is then used as variables within the script. The cruncher is the code works fine when using V5.6, but fails miserably when using V5.8 The issue I am getting is that the questions do not appear until after you enter the input. As you can guess, this is rather frustrating. The code responsible is as follows:
From here, the input is used as variables in the program. I have tried a few different bits and pieces (my perl knowledge is at the +1 from newbie stage at the moment!), such as a dummy print around print "$promptstr";, which work fine. I have also added a newline on the print command above, which then makes the prompt print, but puts the cursor on a new page. Can anyone give me some advice on what I should do and where I should look to get this working as it should. Any help would be appreciated!! Cheers!
Back to
Seekers of Perl Wisdom
|
|