Help for this page

Select Code to Download


  1. or download this
       use Safe;
       my $config = Safe->new;
    ...
       $ok = $config->reval( $cfg_str );
       # Or: $ok = $config->rdo( $config_source );
       $err = $@;
    
  2. or download this
    join ";\n", map "local *$_ = \$handler{$_}", keys %handler;
    
  3. or download this
       local *handler_localizer = sub {
          if( my $name = each %handler ) {
    ...
             $err = $@;
          }
       };