Jan Dubois wrote:
Tue, 19 Apr 2005, Steve Hay wrote:
>
>>Excellent idea, and it works a treat for me (on WinXP). I've forwarded
>>your patch to Rob Brown, the maintainer of Net-Ping. Hopefully he'll
>>release a new version for inclusion on perl sometime soon.
>
>>
>
>I see. In that case the patch needs to be a bit more robust since
>Win32::IsAdminUser() is only available in the core since Perl 5.8.4.
it may be available if libwin32 is installed. You may want to
>define a local IsAdminUser() function in the tests like this:
>
>sub IsAdminUser {
return unless $^ eq "MSWin32";
return unless eval { require Win32 };
return unless defined &Win32::IsAdminUser;
return Win32::IsAdminUser();
>}
Thanks, committed to blead as change 24688.
Radan Computational Ltd.
The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.