in reply to Re: Fetching groups a user is in
in thread Fetching groups a user is in

Well yeah, but I was hoping I wouldn't have to muck with getgrent... but I suppose if I did an anonymous sub...

$) = sub { #iterate over getgrent, save gid of group that $) belongs to. return join(' ', @F); }

Seems so unclean though

Replies are listed 'Best First'.
Re: Re: Re: Fetching groups a user is in
by belg4mit (Prior) on Oct 11, 2001 at 20:11 UTC
    Nope wait, doesn't like <CODE>= sub { ..}</CODE, damn!