• About: I blog about Perl.
  • Commented on Perl and Windows UAC
    Excellent work. I was looking for such a module. Is it 100% safe (i.e. check function)?...
  • Commented on Relief from Regexes
    By the way, "Regex Editor" dialog is a core Padre feature that I contributed back in Padre 0.57. It has nothing to do with Padre::Plugin::RegexExplain. So now you have used so far two of my contributions: Padre:Plugin:Moose and this regex...
  • Commented on XS::TCC, another tinycc-based jit compiler
    @tsee++ @run4flat++ Awesome packages...
  • Commented on C::TinyCompiler, a just-in-time C compiler for Perl
    I had to do a cpanm Alien::TinyCC --dev for it to work on Strawberry. Overall an awesome package. Keep up the awesome work. Why is it not on GitHub? :)...
Subscribe to feed Recent Actions from ahmad.zawawi

  • Michael Roberts commented on Perl and Windows UAC

    The check function actually uses Win32::TieRegistry and tries to obtain write access - if that fails, you're not running with elevated privileges.

    I couldn't find any more "official" way to determine elevation state than that.

    But if I understand your question correctly, then if you are running with elevated privileges, the "use" will return silently and your script will run.

    The only weirdness about the whole thing is that Windows starts a new console for Perl, which will naturally disappear after your script has run. If you want to read something on the scree…

  • Michael Roberts commented on Perl and Windows UAC

    Har. HTML got me in that above. The easiest way to wait for Enter is of course <STDIN>....

  • Brad Gilbert commented on Perl and Windows UAC

    Shell.Application was added for WScript and CScript scripts, so the actual functionality should be accessible directly with Win32::API. I'm not sure at the moment what it is calling under the hood.

  • Alex commented on Perl and Windows UAC

    Hi! What about Win32::IsAdminUser() to check for elevated privileges? The docs say:

    Returns non zero if the account in whose security context the current process/thread is running belongs to the local group of Administrators in the built-in system domain; returns 0 if not. On Windows Vista it will only return non-zero if the process is actually running with elevated privileges. Returns undef and prints a warning if an error occurred. This function always returns 1 on Win9X.


  • Michael Roberts commented on Perl and Windows UAC

    Hey, Alex - great find! I swear I looked for that kind of stuff for like a week and finally just gave up. I'll put this into the next version for sure.


Subscribe to feed Responses to Comments from ahmad.zawawi

About is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.