in reply to Simple Logic Problem with Perl

What about in a situation like the following:
my $sample6 = ['str1 str2 1', 'str3 str4 5', 'str5 str6 6'];

Replies are listed 'Best First'.
Re^2: Simple Logic Problem with Perl
by Anonymous Monk on Oct 19, 2005 at 16:43 UTC
    Thanks so much for your respons, Mr.jdporter.
    If that's the case the result will be:
    my $sample6 = |str1 str2 |index = 1 |__________| |str3 str4 |index = 5 |str3 str4| index = 5 |_________| |str5 str6| index = 6 $output_sample6 = [ $str1, $str2, $str3, $str4, $str3, $str4, $str5, $str6, ];
    I truly don't know how to go about it.
    Thanks and hope to hear from you.