in reply to Win32::API Question
I'm not familiar with Win32::API, but chances are that the constructor may fail, and if so, then you should take care of that. What does the documentation have to say about this? Check it: it's just as easy as perldoc Win32::API.
Also, you said that you're resusing someone else's code. This is not that bad, if you avoid cargo culting it. Try to understand it instead!
Also, it may seem to you that this doesn't have to do Win32::API, and indeed it doesn't, but evidence is that you're not using strict (and thus probably warnings ): please (do a favour to yourself and) do!!
Last, there shouldn't be any problem with the above, but to be sure avoid indirect object syntax and write
instead.my $InitTelnetClients=Win32::API->new(@args);
|
|---|