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();

In reply to Re: Passing parameters from perl to snmx by jbrugger
in thread Passing parameters from perl to snmx by Nalina

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.