in reply to Re: Require everything between innermost <code></code> tags to compile.
in thread Require everything between innermost <code></code> tags to compile.

Keep in mind that if you prevented me from saying BEGIN {...} that I could always say it another way. Similar tricks can be played with overload as well. Anyone know of other modules I can get to execute arbitrary code during BEGIN?

use lib sub { die 'bad code' }; use foo_bar;
  • Comment on Re: Re: Require everything between innermost <code></code> tags to compile.
  • Download Code

Replies are listed 'Best First'.
Re: Re: Re: Require everything between innermost <code></code> tags to compile.
by sauoq (Abbot) on Aug 03, 2003 at 07:10 UTC
    perl -le 'use if eval("print `echo hello`"), CGI; BEGIN{ print "goodbye"}'
    -sauoq
    "My two cents aren't worth a dime.";