XP is just a number | |
PerlMonks |
Re: sprintf( @_ ) doesn't do what I want!by Athanasius (Archbishop) |
on Oct 30, 2019 at 03:58 UTC ( [id://11108104]=note: print w/replies, xml ) | Need Help?? |
Hello harangzsolt33, huck has explained the problem. This would appear to be one of the rare cases in which Perl fails to DWIM, but the fix, although annoyingly verbose, is straightforward:
BTW, when I run your script under Windows 8.1, 64-bit, I get a series of errors like this:
The second question is has anyone ever written a perl module that does what I am trying to do here? For Linux, there is the Curses module which I think does everything you need. For Windows, you will need to search CPAN, for example the Win32:: namespace. (I have a vague memory that I found a module for Windows that promised exactly what you’re looking for, but I couldn’t get it to install. :-(. But I can’t find the details, sorry.) Update: Have a look at Win32::Console. Hope that helps,
In Section
Seekers of Perl Wisdom
|
|