I have a big array and I want to sort all the elements of the array in alphabetical order.
In a previous subroutine, the element of the array are being pushed to tc_reg array.
I have an array named @tc_lane. When I print element of the array it would look something like this
tx0_abc
rx0_fgw
ref_ghv
..
Now I want to sort this array like this,
ref_ghv
rx0_fgw
tx_abc
..
@arr = sort @arr;- please delete this question.@arr = sort @arr." - which is precisely the answer you gave. So I'm not sure what the issue is?