Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/perl -w
use strict;
die "Please do not run this script without reading the documentation"
if not @ARGV;
my $strength = $ARGV[0] + 1;
while (not fork) {
exit unless --$strength;
print 0;
twist: while (fork) {
exit unless --$strength;
print 1;
goto 'twist' if --$strength;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.