adam_blackice has asked for the wisdom of the Perl Monks concerning the following question:
and thanx$passwd = "/etc/passwd"; open(PW,$passwd) or die "Can't open $passwd:$!\n"; while (<PW>){ ($name,$passwd,$uid,$gid,$gcos,$dir,$shell) = split(/:/); print; } close(PW);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: helping in CGI script that add users to system
by Fletch (Bishop) on Apr 11, 2007 at 21:01 UTC | |
by adam_blackice (Acolyte) on Apr 11, 2007 at 21:40 UTC | |
by shmem (Chancellor) on Apr 11, 2007 at 22:01 UTC |