Help for this page

Select Code to Download


  1. or download this
    use Tie::Constrained 'detaint';
    tie my $trusty, 'Tie::Constrained' , sub {
        &condition && &detaint;
    };
    
  2. or download this
    our %check;
    @check{@fields} = (
        sub { $_[0] =~ m/^$RE{'URI'}$/; },
    ...
        my $check = $check{$_};
        tie $hash{$_}, 'Tie::Constrained', sub { &$check && &detaint };
    }