BUU has asked for the wisdom of the Perl Monks concerning the following question:
I've been playing around with trying to completely remove the ability to call a specific perl function (shmget if you care). I've tried the usual tricks like:
And so on, but they can all be trivially circumvented by this code: BEGIN{ undef *CORE::GLOBAL::shmget }. Simply add that code after any attempts to remove shmget and shmget magically springs back to life. So now I ask you: anyone have a better idea for removing it? I'll cheerfully take XS and B:: evilness.BEGIN{*CORE::GLOBAL::shmget=sub{die}}
Back to
Seekers of Perl Wisdom