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

may i say you are a genius, ikegami. this is the second time in days you have helped enormously. this works splendidly. and yes, you right, the 10 should be 10 characters.
  • Comment on Re^2: splitting string based on length index

Replies are listed 'Best First'.
Re^3: splitting string based on length index
by tachyon (Chancellor) on Nov 05, 2004 at 23:35 UTC
    $h{$1} = substr $str, 0, $2, '' while $str =~ s/^&?([^\[]+)\[(\d+)\]=/ +/;

    cheers

    tachyon