That's not very effective security. What if I put the following code in a module with a dissimilar name to a real plugin? It's still game over.
no warnings 'redefine'; *Your::Plugin::left_hook = sub { unlink <*>; };
Update: I could put this in a file called strict.pm and it would still work. I meant to mention that in the first version of this node.
In reply to Re: Re: Re: How to make a module aware of where it is installed?
by chromatic
in thread How to make a module aware of where it is installed?
by jaldhar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |