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 Culture Entertainment Life Music 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!"';