eoin has asked for the wisdom of the Perl Monks concerning the following question:
Heres the code for the error:Use of uninitialized value in join or string at reg.cgi line 166 (#1) (W uninitialized) An undefined value was used as if it were already de +fined. It was interpreted as a "" or a 0, but maybe it was a mistake. To suppress this warning assign a defined value to your variables. To help you figure out what was undefined, perl tells you what operati +on you used the undefined value in. Note, however, that perl optimizes your program and the operation disp +layed in the warning may not necessarily appear literally in your pro +gram. For example, "that $foo" is usually optimized into "that " . $foo, and + the warning will refer to the concatenation (.) operator, even thoug +h there is no . in your program.
Thanks, Eoin..open USRNF,">>$file" or die "Couldn't find user file $file, Perl s +ays $!\n"; print USRNF join "#", @info; #Line 166 Error = "#" print USRNF "\n"; close USRNF; open PASS,">>$pass" or die "Coundn't find user file $pass, Perl say +s $!\n"; print PASS $user_name; print PASS "\\"; print PASS &encryption($password); print PASS "\n"; close PASS;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl says $!what???
by gjb (Vicar) on Jan 03, 2003 at 21:08 UTC | |
|
Re: Perl says $!what???
by JamesNC (Chaplain) on Jan 03, 2003 at 21:25 UTC | |
|
Re: Perl says $!what???
by poj (Abbot) on Jan 03, 2003 at 23:46 UTC | |
|
Re: Perl says $!what???
by Anonymous Monk on Jan 03, 2003 at 21:43 UTC | |
by eoin (Monk) on Jan 03, 2003 at 22:54 UTC | |
by Enlil (Parson) on Jan 04, 2003 at 00:00 UTC |