note
blakem
I like this approach (its the only one listed that fits the "only two" spec) but what happens if there is only one space?
<br>
<blockquote>
"this hasonlyonespace" => "this hasonlyonespace"
</blockquote>
<p>
How about:
<code>
$line =~ s/\s+/ /g;
$line =~ s/ /:/ for (1,2);
</code>
<P>
-Blake
241023
241032