Note that Dominus grapples with this same question in Why it's stupid to `use a variable as a variable name' (Part 1). He knows that symbolic refs are bad, so when a question comes up about them, should he say so and have people jump on him (just answer the question!), or should he just go on and give the answer and have a completely seperate group of people jump on him (you know this is bad, so why didn't you say so?!!)?

The answer can usually be determined by the context of the question. You may pick up hints that the question came from an experianced coder, either by things said in the post or past experiance. If so, it's probably best to just answer it and let them deal with any consequences.

OTOH, imagine a SoPW like this:

I NEED HELP BUGGING CGI. I TRY GETTING PARAMS FROM CGI
require CGI 'standard' for $i (Vars()) { $$i = param($i); }
BUT IT DONT WORK NEED HELP PLEASE THANKS

If you answer that question without showing why its bad, be prepared to meet my clue-by-four :)

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

: () { :|:& };:

Note: All code is untested, unless otherwise stated


In reply to Re: Answering questions and questioning questions by hardburn
in thread Answering questions and questioning questions by talexb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.