in reply to changing the first number of every line
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 Section
Seekers of Perl Wisdom