All this complexity. This works fine, assign instead of print if you want.
print sort map{/\|(\w+)$/}@origarray;
tachyon
In reply to Re: Substring Sort
by tachyon
in thread Substring Sort
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |