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 :)
In reply to Re: Completely lost - 'Use of uninitialized value in pattern match...' error :(
by McDarren
in thread Completely lost - 'Use of uninitialized value in pattern match...' error :(
by n00dles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |