in reply to dereference array
@edits is an array not a reference to an array. No need to dereference it. Each element of @edits is a reference to an array with a single element. The following should work:
print join('|', map {$_->[0]} @edits), "\n";
Update: changed parentheses. Thanks Athanasius.
|
|---|