I have been noticing the ? used quite a bit, and I don't know what it does. I know in 
regular expressions it means "0 or 1" but what about in a time like:

for my $op ( "and", "or ", "xor" ) {
    print "0 $op 0 ", eval "0 $op 0" ? "TRUE" : "FALSE";
    print "0 $op 1 ", eval "0 $op 1" ? "TRUE" : "FALSE";
    print "1 $op 0 ", eval "1 $op 0" ? "TRUE" : "FALSE";
    print "1 $op 1 ", eval "1 $op 1" ? "TRUE" : "FALSE";
    }

or 

my @keys = ($orderRef)?(@$orderRef):(keys %$hashRef);

TIA

Brian Seel
High School Intern
Micron Technology
[EMAIL PROTECTED]



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to