http://www.perlmonks.org?node_id=748664


in reply to Sort by specific column

have a look at this link: http://www.stonehenge.com/merlyn/UnixReview/col64.html it explains exactly what you need.

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!