in reply to Re: insert lines based on some pattern
in thread insert lines based on some pattern

If you look carefully at the sample output, you will see that the order of the files is maintained with files in the same type to be "surrounded" by "bakery" or "fruitjunction" tags.

Your hash-of-arrays will not keep this "interleaved" order.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

  • Comment on Re^2: insert lines based on some pattern