in reply to Re^2: splitting string based on length indexin thread splitting string based on length index
$h{$1} = substr $str, 0, $2, '' while $str =~ s/^&?([^\[]+)\[(\d+)\]=/ +/; [download]
cheers
tachyon