in reply to Simple Logic Problem with Perl
my $sample6 = ['str1 str2 1', 'str3 str4 5', 'str5 str6 6']; [download]
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, ]; [download]