Perl6 RFC Librarian <[EMAIL PROTECTED]> writes: > This and other RFCs are available on the web at > http://dev.perl.org/rfc/ > > =head1 TITLE > > Common attribute system to allow user-defined, extensible attributes > > =head1 VERSION > > Maintainer: Nathan Wiger <[EMAIL PROTECTED]> > Date: 28 Sep 2000 > Mailing List: [EMAIL PROTECTED] > Number: 337 > Version: 1 > Status: Developing > > =head1 ABSTRACT > > Camel-3 and others have proposed a syntax for declaring variables like > so: > > my type $var :attr1 :attr2 = $val; > > However, nobody has really nailed down what C<:attr1> and C<:attr2> are > supposed to do. This takes a shot at it, since this could simplify the > implementation of B<RFC 188>, B<RFC 336>, B<RFC 163>, and others. Err... have you read perldoc attributes? There's already a mechanism for doing this (see my japh), though it is a complete PITA to use and I'd like to see it tidied up (and possibly have attributes.pm reimplemented, I've got a few ideas, bear with me I may have code later that does what you want...) -- Piers sub MODIFY_CODE_ATTRIBUTES {print "@_[2..$#_].\n";()} sub MODIFY_CODE_ATTRIBUTES : Just another Perl hacker