http://qs321.pair.com?node_id=267726


in reply to Re: "Useless use of private variable in void context"
in thread "Useless use of private variable in void context"

To clarify, using your method, do I want to have the length error appear physically before/after the error in question - or numerically?

Also, how is this possible?

Useless use of private variable in void context at beta.cgi line 2766. Useless use of length in void context at beta.cgi line 2766.

The 'length' line of code is one line before the GeneratePassword() line, yet they show up as the same line in the error? Is this because the perl interpreter has simplified them into one line of code?

However, if I place the 'length' line on the very next line after the GeneratePassword() line, I get the following (this is what I'm looking for, correct?

Useless use of private variable in void context at beta.cgi line 2766. Useless use of length in void context at beta.cgi line 2767.

So using this method, does it not point to the line my $generated_password = GeneratePassword(); as the culprit?