Perl Monk, Perl Meditation | |
PerlMonks |
Re: Loop Through Files and Update Headersby kcott (Archbishop) |
on Mar 06, 2020 at 06:58 UTC ( [id://11113901]=note: print w/replies, xml ) | Need Help?? |
G'day jalopez453, As has already been mentioned, you've some problems in your code. Another, is "untie @array" inside the for loop: indenting your code probably would have made that more obvious. If you have a different number of new headers than what was there originally, consider using splice. Here's a quick example:
— Ken
In Section
Seekers of Perl Wisdom
|
|