Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: What A Wonderful World: Bitmasks!

by Aristotle (Chancellor)
on Dec 10, 2002 at 16:03 UTC ( [id://218815]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $param = 0;
    $param |= FOO if $foo > 0;
    $param |= BAR if $bar != 1;
    $param |= BAZ if $baz > $foo;
    quux($param);
    
  2. or download this
    quux($foo > 0, $bar != 1, $baz > $foo);
  3. or download this
    quux( ($foo > 0 && FOO) | ($bar != 1 && BAR) | ($baz > $foo && BAZ) );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-25 10:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found