dimar has asked for the wisdom of the Perl Monks concerning the following question:

If you are familiar with 'attributes' in the CSharp programming language, then you probably do not need to look at the following link for an overview of what they are: CSharp Attributes overview

Moreover, you probably already knew that someone was going to ask you if there is way to tag subroutines in a perl module with custom attributes, just like in CSharp programming endeavors.

Congratulations! This is your opportunity to answer that question you have been anticipating. Specifically, is there a way to tag subroutines in a perl module with custom attributes?

  • Comment on CSharp Attributes ... Perl equivalent for module subroutines?

Replies are listed 'Best First'.
Re: CSharp Attributes ... Perl equivalent for module subroutines?
by samtregar (Abbot) on Jan 11, 2005 at 02:54 UTC
    Yup. And strangely enough, they're called attributes!

    -sam

      Also see the various Attribute::* modules which are built on this foundation.
Re: CSharp Attributes ... Perl equivalent for module subroutines?
by gellyfish (Monsignor) on Jan 11, 2005 at 11:35 UTC

    A more complete description of the way that .NET attributes work and can be used can be found on MSDN