in reply to Opening file and printing specific data
But seriously
</IGNORE>open PWD,"</etc/passwd" or die "Cannot open: $!"; while (<PWD>) { my ($name,$id) = (split /:/)[0,4]; print "$name,$id\n"; } close PWD;
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.
|
|---|