May 23, 2001, 5:39 AM
Post #11 of 15
I know there's not so much help in saying RTFM (Read The [censored] Manual) but i think that peoples should really have a look the documentation. I'm quite sure your version of perl come with the perldoc program.
If you try perldoc --help at your favourite shell, command.com or cmd.exe, you'll get really usefull informations. A good start is:perldoc perl.
Now there is some good options to know about, for example, to search the perl's FAQs, you can use the -q. Where, a funny example, in perldoc -q decimal you would find this:
To get rid of the superfluous digits, just use a format (eg, "printf("%.2f", 19.95)") to get the required precision. See the Floating-point Arithmetic entry in the perlop manpage.
Another one is to check what does a perl's function, like in (another fortuituous example ) perldoc -f qq which gives:
Generalized quotes. See the Regexp Quote-Like Operators entry in the perlop manpage.
Now you saw three references to the perlop man page (if you checked perldoc perl), and I'm sure you will come, by yourself to where you need to look to really understand how qq// works.
Another way to search the perl's documentation is with the -r switch, but again you should know it since you tried perldoc --help earlier .
Also have a look on how to search the displayed informations by perldoc (in general you type /some regex with the slash to get the prompt).
I mean no offense with this message, but i just wanted to explain to people in general, how i find answers to the general questions I ask myself about perl. It's far more faster to know how to find by yourself than to wait for peoples in a forum to reply.
Btw, for your last question, if you dont find what you need with perldoc, try perldoc perlbook .
For a good tutorial for perl look there. Or learn how to search and you'll be able to find the incredible treasures hidden deep in the net...
I hope this really helps,
else dont hesitate to ask other questions here.
Real programmers don't eat cache.