in reply to Win32 Alert Boxes from Perl

I wouldn't use either Win32::GUI or Tk - they are great, but an awful lot of work if you just want an alert box! Just do this:
use Win32; $returnvalue = Win32::MsgBox("Hello World",4,"WindowTitle"); print $returnvalue;
Simple! That prints a message box with Yes and No buttons, the text "hello world" and then prints "6" if the user clicked yes, and 7 if the user clicked no, in your perl window.

Just check perldoc Win32 and scroll down to MsgBox

$code or die
Using perl at
The Spiders Web

Replies are listed 'Best First'.
Re: Re: Win32 Alert Boxes from Perl
by zakzebrowski (Curate) on Jan 19, 2001 at 18:44 UTC
    Thanks dude, this was exactly what I was looking for. I knew of the TKL and I new that Win32 had the api interface, but I didn't know that the Win32 package itself had support for MsgBox's. :) Thanks!