Royce Wells wrote:
> I am trying to split off the user name and the password record in one pass
> through however what I am getting is only the first record is being
> populated into my user array.
>
> Can someone tell me am I going about this the right way?
>
> Thanks,
> Royce
>
>
>
> my @user=(split(/:/,(@passwd=(split(/\n/,`cat /etc/passwd`)))[0]));
> for($i=0;$i <= $#passwd ; $i++)
> {
> print "$user[$i]\n";
> print "$passwd[$i]\n";
> }

Come on guys.

The answers a resounding 'no'. But why on earth try to write fancy code
which is neither comprehensible nor functional. Let's start from here:

  open PWD, '/etc/passwd' or die $!;

next line, anybody?

Rob






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to