Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

cwest (1514)

  (email not shown publicly)
AOL IM: caseyrwest (Add Buddy, Send Message)

Perl geek.

Journal of cwest (1514)

Tuesday September 23, 2003
09:37 AM

Class::Accessor talking to Params::Validate

[ #14855 ]

I wonder if anyone else would find this useful.

      name => {
               validate => 'pos',
               spec     => [
                             { type => SCALAR },
      .... => { ... },
  __PACKAGE__->mk_accessors( qw[name ... ] );

I also can't think of a good name to call it. Any ideas? For now I'm just using it in a project with a project specific package name. One suggestion was Class::Validate, but that removes the accessor bit. Class::Accesssor::Validate removes the params bit, but might be better.

Posted from, comment here.

New comment creation has been disabled on this discussion.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login
Loading... please wait.