http://www.perlmonks.org?node_id=69951


in reply to if condition only returns false . . .

Dr. doc sez: Returns a random fractional number greater than or equal to 0 and less than the value of EXPR. (EXPR should be positive.) If EXPR is omitted, the value 1 is used.

Since a decimal number 0<x<is returned and concatenated, 0 takes the place of the left side of the comparison and 0 never equals 1. Perhaps you'd like to provide an argument?

AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.