The stupid question is the question not asked | |
PerlMonks |
Re^4: Global variable unexpectedly modified when passed by referenceby BrowserUk (Patriarch) |
on Dec 10, 2014 at 02:32 UTC ( [id://1109839]=note: print w/replies, xml ) | Need Help?? |
You know, hidden away in all the pointless hieroglyphics, verbose irrelevancies, overly complicated example, and cutesy catch phrases, there is actually the glimmer of an arguable point: the language-system “raised no ‘quibble’ at all.” Isolated and translated, if you'd said: "Perl doesn't raise a warning when you use a reference in a numeric context; and that has caught me out.", then you might at least have engendered some reasonable discussion on a potentially valid point. And so, just for you, here it is:
Now that needs work. If the reference is held in a variable (as opposed to being use anonymously print \$s + 0;), it'd be nice to list which variable. And the exact text would probably need world+dog approval, along with its warning category; but it could be argued for. And the change required to make that possible:
That's right. A single added line. (Feel free to take that to p5p and champion it.) Of course, that raises the question, why if it is so easy to implement, hasn't it been done before? The most likely answer to which is: because no one has found it to be necessary. Till now...? With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|