Help for this page

Select Code to Download


  1. or download this
    BEGIN {
      eval "sub foo {}" if rand() < 0.5;
    }
    foo();
    
  2. or download this
    if (rand() < 0.5) {
      1 while 1;
    }
    
  3. or download this
    BEGIN {
      my $x = "... arbitrary perl code ...";
      eval "sub foo {}" if eval $x;
    }
    foo();