> "Matthew" == Matthew Harrison <[EMAIL PROTECTED]> writes:
Matthew> how can i make a script check whether a variable equals an existing system
Matthew> username or not? the script does not run as root, it is a webpage.
if (defined getpwname($possible_new_name)) {
# it already exists
} el
use CGI;
my $q = new CGI;
my $formfield1=$q->param('username')
my $formfield2=$q->param('password')
#INITIALIZE HASH OF FORM VARIABLES
my %params = $q->Vars;
open (FILE, "$filename") || die "No such file\n";
my @data=;
close (FILE);
foreach my $i (@data)
{chomp($i);
my ($username,$password)