Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: GP problem with tree structure using hash

by BrowserUk (Patriarch)
on Oct 12, 2004 at 06:41 UTC ( #398383=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. 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 );
    }
    
  2. or download this
    if( $value eq undef ) { ...
    
  3. or download this
    if( defined $value ) { ...
    
  4. or download this
    for my $i ( 0 .. 63 ) {
      ...
    }
    
  5. or download this
    $tree->{ ('left', 'right')[ rand 2 ] }
           { ('left', 'right')[ rand 2 ] }
           { ('left', 'right')[ rand 2 ] } = 'AND';;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://398383]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2023-01-29 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?