NAME

Scalar::RefType - simple scalar type checker

SYNOPSIS

use Scalar::RefType;

tie my $h1 => 'Scalar::RefType', {};
tie my $h2 => 'Scalar::RefType', 'HASH';

# dies:
$h1 = [];

DESCRIPTION

This little module allows you to tie the type of a scalar to a specified reference type. If the refererence type of an assignment violetes the tied type, the assignment throws an exception.

AUTHOR

Heiko Schlittermann <hs@schlittermann.de>