in reply to Re: Meaning of 'use constant USAGEMSG = > ...'
in thread Meaning of 'use constant USAGEMSG = > ...'

Having a 'Seekers of Perl Wisdom' IMHO is not an excuse for not trying to search for obvious info by oneself.

I disagree to some extent. While it would be nice if people spent a bit more time searching documentation for the answer, some beginners may not even know perldoc exists, or that answers to these questions could be found there. Perl is so diverse that a piece of code that looks 'simple' and 'fundamental' to you may seem completely foreign to someone else.

You can get a long way in Perl without using (or possibly even knowing about) constants and here docs.

  • Comment on Re^2: Meaning of 'use constant USAGEMSG = > ...'

Replies are listed 'Best First'.
Re^3: Meaning of 'use constant USAGEMSG = > ...'
by blazar (Canon) on Feb 08, 2005 at 17:47 UTC
    I disagree to some extent. While it would be nice if people spent a bit more time searching documentation for the answer, some beginners may not even know perldoc exists, or that answers to these questions could be found there. Perl is so diverse that a piece of code that looks 'simple' and 'fundamental' to you may seem completely foreign to someone else.
    And in turn I partly agree with your disagreement! To reply to your cmt: in fact I think (and I heartily hope!) that I have kindly pointed him to the correct entry points in the documentation, underlining clearly enough that most of what he may need to know is already there...