@edits = map { $_->[0] } @edits; # Now @edits is just an array of scalars so we can print join('|', @edits), "\n";