The other day in a class I was teaching Perl for beginners,
I was showing how to copy a file using
At one point one of the students asked me (and actually this happens
in every class) how could he find out the answer to this
and similar questions without my help ?
I pointed to various resources, still they seemed not to be satisfied
with the answer. So I asked on the
Perl Trainers mailing list what others
tell their students and asked a similar question on a
beginner mailing list.
Here are the pointers I collected so far in two groups but in no particular order within
- Serach the FAQ that comes with Perl: perldoc -q "SOME QUESTION"
Specifically this did not have anything about on how to copy a file. While the FAQ is very good it is also constrained by the time of the good people who maintain it
- Search in perldoc perlfunc
obviously this did not have anything about file copy either and in general if there is no such function in Perl, then this is not useful
- ActivePerl users (at least on Windows) have
HTML version of the documentation
- In his post Tad McClellan gave a nice step-by-step approach to solve the problem
Still, I'd be interested in other ways, monks might use:
When you have a question such as "how to copy a file", what do you do to find a solutions ?
Do you prefer to use local resources or on-line resources ?
If you are coming from another programming languages, how would you look
for an answer in that language ?
Looking back to my original question, interestingly I have not even thought about
International Perl Resources
, but that's another issue that might be addressed here.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||