Help with Perl and removing info from a ypcat
Posted on 1997-04-03
I want to find where each users home account is.. I am doing
open(USERS, "user_list") || die "could not open file ($!)";
$local = `ypcat passwd | grep $person`;
I want to remove the exta info that the ypcat gives me. I tried doing
a $local =~ s/^$person//g; to start widdling away at the output of $person
but it doesn't work.