in reply to Passing parameters from perl to snmx

Seems nothing wrong with the perl code... Can you give some more info about snmx?
I've never heard of it, and google wasn't verry communicative:
Simple Network Management Executive. SNMX is an executable program and scripting language providing network management functions using SNMP protocol. The SNMX program has application in system administration of networks, network process control, data logging, and interprocess/internetwork communication. It is Freely Distributed to individuals and organizations (with some limitations applying.)
, but i still would not know how the program is called, or how snmx works.
*** Update ***
One thing (little issue in your code), a return value is given from a sub, so in this case you should write: (Have you tried to use STDOUT?)
use Win32; sub message() { $caption = "asg report"; $val = Win32::MsgBox("data for 22nd not found.\n Do u want to cont +inue?", 4, $caption); return ($val); } print message();

Replies are listed 'Best First'.
Re^2: Passing parameters from perl to snmx
by Nalina (Monk) on Mar 16, 2005 at 08:18 UTC
    SNMX scripting language is used in ASG. Its calling Perl script msgbox.pl & then trying to manipulate the variable paased by perl as shown.
    perl C:\msgbox.pl set $tmp = $arg.1 echo $tmp
    When snmx calls a perl script, the control goes to the perl script, executes it & then comes back to the SNMX. This is similar to calling a subroutine, assuming perl script as a subroutine. Now the problem is that the perl script is not able to pass parameter to the SNMX script which has called it.