In fact, the Tie::File documentation explicitly warns against inserting elements containing newlines (the default record separator.
Inserting records that contain the record separator string is not supported by this module. It will probably produce a reasonable result, but what this result will be may change in a future version. Use 'splice' to insert records or to replace one record with several.
In reply to Re^2: Inserting content into a file at a particular location
by Corion
in thread Inserting content into a file at a particular location
by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |