note
robsv
[id://9073],<br>
This is <b>very</b> cool! I did run into one small quirk in
the key/value pair example - it doesn't stop (I think because
the <i>last</i> drops out of the <i>for</i>, not the loop block). I
got it to work as:
<code>
LOOP: { defined($_ = <STDIN>) or last LOOP for my($key,$value);
chomp($key,$value);
$hash{$key} = $value;
redo;
}
</code>
I guess the <i>chomp</i> really isn't necessary, but I
wanted to ditch the newlines. Thanks!
<br><br><i>- robsv</i>
46782
46782