legend has asked for the wisdom of the Perl Monks concerning the following question:
Can someone help me out please?$condition = "(($a && $b) || ($c && $d))"; $a = 1; $b = 1; $c = 0; $d = 1; #Now, I have to check the condition. if condition true { print "Your condition is true; print some arbitrary variables here; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using a stored condition
by jettero (Monsignor) on Mar 02, 2008 at 21:40 UTC | |
by legend (Sexton) on Mar 02, 2008 at 22:40 UTC | |
by shmem (Chancellor) on Mar 02, 2008 at 22:55 UTC | |
by legend (Sexton) on Mar 02, 2008 at 23:13 UTC | |
by shmem (Chancellor) on Mar 02, 2008 at 23:44 UTC | |
| |
by legend (Sexton) on Mar 02, 2008 at 23:22 UTC | |
by TGI (Parson) on Mar 03, 2008 at 00:43 UTC | |
by shmem (Chancellor) on Mar 02, 2008 at 23:50 UTC | |
by jettero (Monsignor) on Mar 02, 2008 at 23:45 UTC | |
by grizzley (Chaplain) on Mar 03, 2008 at 08:53 UTC |