Glenn Linderman wrote:


But, fixing it myself let me verify that that is the problem, and find the next one. My app.pl uses Win32. And it then says:


    $flags = 4 | & Win32::MB_ICONQUESTION;

which works fine as app.pl.  But app.exe reports

  Undefined subroutine &Win32::MB_ICONQUESTION called at ...

I've no clue how to workaround this one, much less fix it, so additional pointers on this topic would be extremely welcome.


Do you need the "&" ? For me the following 3 statements assign the same value (ie 36) to $flags:

use Win32;
$flags = 4 | & Win32::MB_ICONQUESTION;
$flags = 4 | Win32::MB_ICONQUESTION;
$flags = 4 | MB_ICONQUESTION;

Perhaps one/both of those last 2 ways will work around the problem ?

Cheers,
Rob

--
Any emails containing attachments will be deleted from my ISP's mail server before I even get to see them. If you wish to email me an attachment, please provide advance warning so that I can make the necessary arrangements.




Reply via email to