May 12, 2005, 6:34 AM
Post #2 of 2
It's well worth getting to know how to use the free documentation that comes with Perl. It's all accessible with the command "perldoc". So typing "perldoc perldoc" at your command line will give you documentation on how to use perldoc.
Re: [benn600] Inserting commas into lengthy NUMBERS
[In reply to]
One particularly useful part of the Perl documentation is the list of Frequently Asked Questions (or FAQ). Everyone programming in Perl should read through that section at least once. However, if you're too busy for that, then perldoc has a useful command line parameter (-q) which searches the FAQ for questions containing a given word in the question.
So if you had typed "perldoc -q comma" on your command line you would have got the answers to "Can I write useful Perl programs on the command line?" (which is't useful at this point) and "How can I output my numbers with commas added?" (which is).
Using the documentation that is installed with Perl for queries like this is generally far quicker than asking a question on a forum like this and waiting a day or two for a reply.
It's also worth noting that the full Perl documentation set is also available online
Dave Cross, Perl Hacker, Trainer and Writer
Get more help at Perl Monks