in reply to Splitting and formatting a line
while (<EMPLOYEES>) { chomp; (my @f = split(/:/)) == 5 or next; print join("\t", @f[2, 3, 0, 4]), "\n"; }
No, that's all right, citizen! Your gratitude is reward enough!
-- Chip Salzenberg, Free-Floating Agent of Chaos
|
|---|