in reply to Re^2: splitting string based on length index
in thread splitting string based on length index

$h{$1} = substr $str, 0, $2, '' while $str =~ s/^&?([^\[]+)\[(\d+)\]=/ +/;

cheers

tachyon