With the appropriate privileges and access to the right APIs this is possible.
But gaining access to those APIs is far harder from Perl than C or C#, and way beyond the scope of this forum.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.