You can get a good start with that by reading perlintro and look over perlfaq5, especially the section "How do I change, delete, or insert a line in a file, or append to the beginning of a file?".
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: changing the first number of every line
by roboticus
in thread changing the first number of every line
by jinism
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |