I tried your code and I got the correct(?) output:
mv89psg6zh4: A bird in a sink keeps getting under the running water fr
+om a faucet. A bird...
Since all your keys were the same I even changed two of them to mv89psg7zh4 and mv89psg8zh4 and again got the expexted output:
mv89psg7zh4: A bird is playing in a sink with running water.
mv89psg6zh4: A bird in a sink keeps getting under the running water fr
+om a faucet. A bird is bathing in a sink. A bird is splashing around
+under a running faucet. A bird is bathing in a sink. A bird is standi
+ng in a sink drinking water that is pouring out of the facet. A fauce
+t is running while a bird stands in the sink below. A bird is bathing
+ in the sink. A bird is taking a bath.
mv89psg8zh4: A bird is playing in tap water.
PS: What do you see when you uncomment the print statement inside your read loop?
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|