in reply to Re: new file per line output
in thread new file per line output

This point is particularly important given that the   m!.*@([^_]*)-! regex of monteryjack's OPed code requires a '-' (hyphen) to be present in the string for a match, and this is nowhere the case in the example data given in the OP.