@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.
In reply to Re: dereference array
by hdb
in thread dereference array
by natxo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |