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

While trying to condense some problem code into a small enough example to post, without removing so much information that the problem became unclear, I realized it would be really nice to have a 'hidden code' tag to go along with the code tag. This would allow the discussion to include only the relevant parts of the code, but let you include supporting code that would be visible when you hit 'd/l code'. This way you could get a complete, working test script from 'd/l code', without cluttering up the conversation with supporting code. What I'm envisioning is something like this:

<hidden_code>
#!/usr/bin/perl -w
use strict;
... several other 'use' statements.
</hidden_code>
<code>
# I think the fake code problem is here:
some_sub('blah blah blah');
sub some_sub {
   do_something();
  &nbsl;do_something_else();
}
</code>
<hidden_code>
sub supporting_sub1 { ... code ... }
sub supporting_sub2 { ... code ... }
</hidden_code>

Good idea? Or is it time to stop drinking?