On 6/24/07, Tom Phoenix <[EMAIL PROTECTED]> wrote:
On 6/23/07, Vahid Moghaddasi <[EMAIL PROTECTED]> wrote:


But maybe you need the actual password file.


You got it, I have to read /etc/passwd file only.

> I am not sure how much I can read into memory space without affecting
> other programs but the entire FILTERfh could be a pretty large. Each
> line could have up to 100 fields (users) and there could be 3 or 5
> lines. How would I read them into memory? In an array?

300 to 500 usernames? If every username is meant to be unique, this
sounds like it's asking to be a hash. A hash with hundreds of
key-value pairs is easy for Perl to handle, so unless each value is
very large you shouldn't have memory issues.

The actual password file is over 10000 lines but I need to find at
most maybe 200 users in it and dump the line in another file.

Thanks.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to