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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://513583]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2024-03-28 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found