oaklander has asked for the wisdom of the Perl Monks concerning the following question:
Please advise how I would get the 'Win32::MsgBox' to work.
As a test I just typed in a one line script with the following line:
Win32::MsgBox("Test of box");
My error message:
Undefined subroutine &Win32::MsgBox called at C:\Perl\bin\WINY.PL line 2.
Do I need to put some type of 'use::Win32 etc...' message
in the script??
oaklander - you do need to include use Win32; at the top of your script. The format for Win32::MsgBox is this: Win32::MsgBox(MESSAGE [, FLAGS [, TITLE]]) - check out the perldocs at Win32.
- Moon
update: an example -
use Win32;
$msg = "Test of Box";
Win32::MsgBox($msg, 0 | MB_ICONINFORMATION, 'Just an Example');