Hello LloydRice,
I can’t reproduce your problem:
16:47 >perl -Mstrict -MWin32::Console -we "my $cons = new Win32::Conso +le STD_INPUT_HANDLE;" 16:47 >
What versions of Perl and of Win32::Console are you using? (I’m using Win32::Console version 0.10 and running 64-bit Strawberry Perl 5.26.0 under Windows 8.1.)
I am hazy on most of the object code practices.
The preferred syntax is: my $cons = Win32::Console->new(STD_INPUT_HANDLE); (but I doubt that the syntax of the call to new has any bearing on the error message you are seeing).
Update: The statement my $cons = new Win32::Console STD_INPUT_HANDLE; is an example of “Indirect Object Syntax” which is documented in perlobj#Invoking-Class-Methods.
Cheers,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: Using Win32::Console
by Athanasius
in thread Using Win32::Console
by LloydRice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |