On Thu, Feb 10, 2005 at 12:02:01PM -0600, Rod Adams wrote: > [...] > If this is the case, then this entire discussion collapses into how to > best convert arrays into junctions and junctions into arrays. Perl's > existing abilities to edit arrays should be more than sufficient for > editing junctions.
Converting an array into a junction is easy, use C<any> or C<all>: $x = any(@array); $y = all(@array); "Perl 6 and Parrot Essentials" says to convert that to convert a junction into a flat array, use the C<.values> method. (I didn't find an equivalent statement in the synopses/apocalypses/exigeses.) Pm