http://www.perlmonks.org?node_id=135046


in reply to (Ovid) Re(3): Coderef from scalar.
in thread Coderef from scalar.

yes ... it's part of a programmable IRC bot, using Net::IRC.
the "special function" is Net::IRC::Connection->add_handler();
so, yes, it's getting the code at runtime...

I'm wanting to implement a ircbot with features similar to Everything(tm).

Replies are listed 'Best First'.
Re: Re: (Ovid) Re(3): Coderef from scalar.
by Fastolfe (Vicar) on Dec 29, 2001 at 09:49 UTC
    If the code is coming from untrusted sources, definitely look into using Safe.pm and restrict the hell out of the permitted opcodes.