in reply to Opening file and printing specific data

<IGNORE> system "cat /etc/passwd | awk -F: '{print $1,$5}'";

But seriously

open PWD,"</etc/passwd" or die "Cannot open: $!"; while (<PWD>) { my ($name,$id) = (split /:/)[0,4]; print "$name,$id\n"; } close PWD;
</IGNORE>

Update: i didn't read this very well, did I? .. The above reply is correct. This one isn't.

Sorry...

-- Joost downtime n. The period during which a system is error-free and immune from user input.