First, you should have a look at the first reply on your node. I think there's some valuable information in there.
Second, I'm glad you at least put <CODE> tags around your code but a little more layout won't hurt. For example: just use white lines to separate the parts of code (variable initialisation and different parts of the real code) :) This is not meant to assault you in any way, it's just offered as an advice.
Thirth thing, think about what you're actually trying to achieve. For example:
my $old_fh=select(STDOUT);
$| = 1;
select($old_fh);
default, STDOUT is selected. So, $old_fh refers to STDOUT now. Then you select STDOUT and make it to flush automatically. Then, you select $old_fh which refers to STDOUT. I really had a hard time while trying to understand what you was actually trying to do here.
Again, not trying to assault you, but what you're doing here is just:
$| = 1 in three lines, where the other two lines only are like "Hey MUBA, what is your nick name?".
"2b"||!"2b";$$_="the question"
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.