- or download this
sub dec2bin {
my $str = unpack("B32", pack("N", shift));
# $str =~ s/^0+(?=\d)//; # otherwise you'll get leading zeros
return substr( $str, -6 );
}
- or download this
if( $value eq undef ) { ...
- or download this
if( defined $value ) { ...
- or download this
for my $i ( 0 .. 63 ) {
...
}
- or download this
$tree->{ ('left', 'right')[ rand 2 ] }
{ ('left', 'right')[ rand 2 ] }
{ ('left', 'right')[ rand 2 ] } = 'AND';;