File: demo_Odder.pl

package info (click to toggle)
libquantum-superpositions-perl 2.03-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 164 kB
  • sloc: perl: 629; makefile: 6
file content (9 lines) | stat: -rwxr-xr-x 196 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl

sub odder {
	grep($_%2, split "", $_[0]) > grep($_%2, split "", $_[1]);
}

use Quantum::Superpositions BINARY_LOGICAL => ['main::odder'];

print odder(any(1234,2468), 666), "\n";