Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Strict to references of a particular Variable of particular type.

by Zaxo (Archbishop)
on Dec 02, 2005 at 13:00 UTC ( #513583=note: print w/replies, xml ) Need Help??

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;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://513583]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2019-07-20 04:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?