Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Anyone using Attribute::Default from CPAN?

by lodin (Hermit)
on Jun 05, 2008 at 19:04 UTC ( #690501=note: print w/replies, xml ) Need Help??

in reply to Anyone using Attribute::Default from CPAN?

I'd recommend against use of attributes in any serious program (with some exceptions, such as Catalyst). You often end up with trouble, as you've already experienced, and there's almost always better alternatives. For some of the issues with attributes, see Re: what would you like to see in perl5.12? (attributes) and Re: What's broken in Perl 5? (attributes) where I lay it out a bit.


  • Comment on Re: Anyone using Attribute::Default from CPAN?

Replies are listed 'Best First'.
Re^2: Anyone using Attribute::Default from CPAN?
by rovf (Priest) on Jun 06, 2008 at 08:45 UTC

    Thanks a lot. The articles you wrote gave me some idea where the problem could be. I now tend to agree with you that I would have been better off without attributes, but at least I could get it working!. I have placed a HowTo on my public scratchpad.

    Thanks to all for helping!

    Ronald Fischer <>

      Perhaps the comments on your scratchpad would be a good addition to the documentation of the module. You could annotate the POD via AnnoCPAN and e-mail the author of Attribute::Default telling him about your problem and your solution.


        Thanks for the hint - I didn't know before that AnnoCPAN exists at all.

        I will do it the other way around: First contact the author (maybe he can improve or correct my annotations) and then put it into AnnoCPAN (unless the author prefers doing this himself).

        Ronald Fischer <>

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2022-01-25 02:33 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (65 votes). Check out past polls.