xerophyte, this is a great place to start with learning perl. The tasks you wish to accomplish can be written (in a well structured manner, I know somebody will think of a one-liner method) in less than two dozen lines. The functions you need to use are very common ones which are well documented in
ANY perl book (
open, if, s///, system, print; to name a few).
However, I don't think anyone on here wants to write your program for you. First, you won't learn nearly as much if we write it for you. Second, only you know the specifics of your requirements. The desired question is one which includes at least a snippet of the code you have tried and any errors it produced. Most of the monks here are happy to help you along, but we do require that you put some real effort into solving the problem.
Finally, please take a shot at this yourself and post any problems you have then. When you re-post, please read this and specifically this first.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
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:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.