in reply to Re: Multiple Conditional Statements
in thread Multiple Conditional Statements
use v5.10; ( $RB1, $RB2, $WR1, $WR2, $TE1 ) = (1,2, 3, "05", 5); if( keys %{ { map{ $_,$_ } $RB1, $RB2, $WR1, $WR2, $TE1 } } == 5 ) { say 'all different'; } else { say 'some same' };; prints "all different"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Multiple Conditional Statements
by BrowserUk (Patriarch) on Sep 11, 2013 at 11:21 UTC | |
by vsespb (Chaplain) on Sep 11, 2013 at 11:26 UTC | |
|
Re^3: Multiple Conditional Statements
by BrowserUk (Patriarch) on Sep 11, 2013 at 11:18 UTC |