in reply to Completely lost - 'Use of uninitialized value in pattern match...' error :(
you should write something like:open(USERS, "< $userlist") or die "cannot open file: $!\n";
open USERS, '<', $userlist or die "Cannot open $userlist:$!\n";
could be written more "perlishly" (and more cleanly) as:for (my $i = 0; $i < scalar(@users); $i++) {
for my $user ( @users ) {
Hope this helps,
Darren :)
|
|---|