in reply to Re: Password Program
in thread Password Program
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Password Program
by Laurent_R (Canon) on Mar 01, 2015 at 10:13 UTC | |
by Anonymous Monk on Mar 01, 2015 at 13:43 UTC |