Thread arrays auf inhalt prüfen (6 answers)
Opened by Noisebreath at 2006-09-07 17:05

Ronnie
 2006-09-18 23:14
#69580 #69580
User since
2003-08-14
2022 Artikel
BenutzerIn
[default_avatar]
Ich würde auch die Variante von pq nehmen, aber CPAN:Quantum::Superpositions ist so cool:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl

use strict;
use warnings;

use Quantum::Superpositions qw/any/;
use Data::Dumper;

my @one = qw /foo bar buz/;
my @two = qw /qux quux bar/;

my @junction = eigenstates(any(@one) eq any(@two));
print Dumper \@junction;

View full thread arrays auf inhalt prüfen