in reply to Simple Logic Problem with Perl

Sorry there is another case when there is a tie like this:
my $sample4 = ['str1 str2 1', 'str3 str4 2', 'str5 str6 3', 'str7 str8 4', 'str9 str10 6'];
The result is this:
$result_spl4 = [ 'str1', 'str3', 'str5', 'str7', 'str8', 'str10' 'str7', 'str8', 'str10' ];
In principle the algo above is applied separately to those two tie area.

Truly sorry for missing out this one. Thanks so much, cause I don't know who to turn to.

Replies are listed 'Best First'.
Re^2: Simple Logic Problem with Perl
by jdporter (Paladin) on Oct 19, 2005 at 14:47 UTC
    That doesn't look right. I think it should be
    $result_spl4 = [ 'str1', 'str3', 'str5', 'str7', 'str8', 'str7', 'str8', 'str9' 'str10' ];

    What am I missing?

    We're building the house of the future together.