Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Perl6 Junctionsby mugwumpjism (Hermit) |
on Jun 03, 2005 at 06:48 UTC ( [id://463133]=note: print w/replies, xml ) | Need Help?? |
In perl 6, Junctions are a core language feature. So, you could write:
Thankfully someone has already implemented them for Perl 5, with the module on CPAN called Perl6::Junctions;
This is actually very similar to the Quantum::Superpositions answer above, and I believe the implementations share a common root.
In Section
Seekers of Perl Wisdom
|
|