Sanity thru Perl Geeking
In summary:
#!/usr/bin/perl -l
@m = qw(mi cro soft);
@y = qw(ya hoo);
while (@m && @y) {
$s = shift @{rand > .5 ? \@m : \@y};
push @r, $s if !@r || rand > .5
}
$" = "";
print "\u@r!"';
![]() | You are viewing Log in Create a LiveJournal Account Learn more | Explore LJ: Life Entertainment Music Culture News & Politics Technology |
In summary:
#!/usr/bin/perl -l
@m = qw(mi cro soft);
@y = qw(ya hoo);
while (@m && @y) {
$s = shift @{rand > .5 ? \@m : \@y};
push @r, $s if !@r || rand > .5
}
$" = "";
print "\u@r!"';
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |