you can do something like this:
#!/usr/local/bin/perl
@ls = `ls -al`;
foreach $line (@ls) {
chomp $line;
$ls = join("\t", (split(' ', $line))[0,1,2,3,4,7,5,6,8]);
print "$ls\n";
}
it might not do what you want exactly but for quick and dirty it will get you started in what you want.