Help for this page

Select Code to Download


  1. or download this
    use Tie::Constrained;
    
    tie my $array_ref,
        'Tie::Constrained', sub { ref $_[0] eq 'ARRAY' };
    
  2. or download this
    tie my $hash_ref,
        'Tie::Constrained', sub { ref $_[0] eq 'HASH' };
    ...
        'Tie::Constrained',
        sub { ref $_[0] and $_[0]->isa('CGI') },
        CGI->new;