in reply to adding a line to the beginning of a file

Puh-lese!!

Suggest you read How do I post a question effectively?, perldoc, the FAQs here, and maybe search for "prepend" "filehandle" or....

Enough.
Here's a simple, less sarcastic reply: We don't do other people's homework (not "knowingly" anyway) and we greatly prefer to spend time answering questions where post shows that the poster has made some effort (eg, has written and posted code; has provided a clear and unambiguous indication of the expected/desired results, etc.)
So go ahead and make our day. Demonstrate some effort and you'll find rich rewards here.

  • Comment on Re: adding a line to the beginning of a file

Replies are listed 'Best First'.
Re^2: adding a line to the beginning of a file
by Anonymous Monk on Apr 27, 2005 at 12:06 UTC
    You Sarcastic Wretch!
    No! this was not homework. It was merely a simple question of which knowing not where to begin.
    It is your type of high and mighty demeanor and sarcasm that scares off those who indeed may need help the most. In the time you wasted in spewing out sarcasm you likely could have used your energy in coming up with an effective response such as the more noble monk tlm did in his response. Often times the "lowliest monk"(s), as tlm referred to himself have the best responses. Thanks TLM.
    Perhaps a lesson of humility is in order for those who think that they are too high and mighty giving sarcasm instead of an effective more useful response.
    A reply falls below the community's threshold of quality. You may see it by logging in.