You could swap both cols in a while or for loop, for instance
foreach (@col){ ($col[0], $col[1]) = ($col[1], $col[0]);}
In reply to Re: Reorganizing Columns with Perl One Liner
by pvaldes
in thread Reorganizing Columns with Perl One Liner
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |