skus si doodladovat nieco taketo...

Kód:
$string = "Dnes je pekne pocasi";
$string =~ s/ //g;

for &#40;$i=0; $i < length&#40;$string&#41;; $i++&#41; &#123;
	$cast&#91;$i&#93; = substr&#40;$string,$i,2&#41;;
&#125;
alebo som to nepochopil spravne