in reply to Watching Perl die() under Win32

The PROMPT variable is also not set from the Start - Run command.

Another usage for this would be to determine whether to print to a console, or to do a Win32::MsgBox instead. (I tried to figure out how the script could figure where it was called from some time ago and couldn't work it out...)
Thanks!

Cheerio!
Osfameron

Replies are listed 'Best First'.
Re: MsgBox vs. print
by Anonymous Monk on Aug 25, 2003 at 01:21 UTC
    As far Windows 98SE is concerned, the PROMPT is set $p$g whether a script is invoked from the command line, clicked, or from the Start-Run dialog box. The CMDLINE is set to whatever was typed on the command line and to WIN if invoked by clicking or from the Start-Run box. If you use the Start-Run box you can pass arguments just as you can from the command line.