Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: RFC - Parameter Objects

by Juerd (Abbot)
on May 15, 2003 at 06:50 UTC ( [id://258332]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Attribute::Property;
    
    ...
        my $self = shift;
        ...
    }
    
  2. or download this
    my %params = (
        type  => qr/Order|Return/,
    ...
    # the following two method calls will fail (croaking)
    $param->type = 'Ovid';
    $param->month = 13;
    
  3. or download this
    my $param = @_ == 1 ? shift : Param::function->new({ @_ });
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-06-25 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.