If you can overwrite the existing array values you can use following for the complete if block. You need not write if as the loop will run only if arrays are not empty
s/#\d+$// for (@changed_files, @newlyinsertedfiles, @branchedfiles);
In reply to Re^3: How do remove trailing data?
by samarzone
in thread How do remove trailing data?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |