XP is just a number | |
PerlMonks |
Re: Stable mixing of 2 arrays into a 3rdby Prior Nacre V (Hermit) |
on Oct 02, 2004 at 03:30 UTC ( [id://395813]=note: print w/replies, xml ) | Need Help?? |
All exceptions occur when T2/7 is output before T1/7. You are checking that @t1 is not empty, but not @t2. Changing the final ternary operator expression to : @t2 ? \@t2 : \@t1 fixes this. Regards, PN5
In Section
Seekers of Perl Wisdom
|
|