If this statement is run with warnings asserted, what will Perl say about the statement?
Unfortunately, nothing... the "Scalar value @wrongPasswords[4] better written as $wrongPasswords[4]" warning you're probably referring to doesn't seem to get triggered by the assignment.
$ perl -wMstrict my @foo; @foo[3] = "bar"; print @foo[3], "\n"; __END__ Scalar value @foo[3] better written as $foo[3] at - line 3. bar
In reply to Re^2: Password Program
by Anonymous Monk
in thread Password Program
by programmercarlito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |