Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Tie Me Up, Tie Me Down

by Zaxo (Archbishop)
on Jan 16, 2005 at 20:27 UTC ( [id://422636]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Tie::Constrained::URI;
    use vars qw/@ISA/;
    use Regexp::Common 'URI';
    ...
    
        $href_ctl->{'test'} = sub { $_[0] =~ /^$RE{URI}{HTTP}$/ }
            if $href =~ /^$RE{URI}{HTTP}$/;
    
  2. or download this
    tie my $obj, Tie::Constrained => sub {
        !$_[0] or $_[0]->isa('My::Frobnicator');
    };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-20 05:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found