Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Rearranging columns in multiple text filesby reisinge (Hermit) |
on Mar 18, 2013 at 13:32 UTC ( [id://1024033]=note: print w/replies, xml ) | Need Help?? |
Hi, let's suppose we have tab-separated data like that in the lines after the __DATA__ token and we want to swap columns two and three:
To work with files, just
and then run the program like this:
Excellence is an art won by training and habituation: we do not act rightly because we have virtue or excellence, but we rather have these because we have acted rightly. -- Will Durant
In Section
Seekers of Perl Wisdom
|
|