in reply to Re^3: Summing the odd/even digits of a larger number (for upc check digits)...a better way?
in thread Summing the odd/even digits of a larger number (for upc check digits)...a better way?
That's what I expect too. The following seems to validate that view.
use warnings; use strict; use Data::Dump::Streamer; my $condRes = 1 == 1; print '1 == 1 '; Dump ($condRes); $condRes = 1 == 0; print '1 == 0 '; Dump ($condRes); $condRes = doCond (1); print 'doCond (1) '; Dump ($condRes); $condRes = doCond (0); print 'doCond (0) '; Dump ($condRes); sub doCond { 1 == shift; }
Prints:
1 == 1 $VAR1 = 1; 1 == 0 $VAR1 = ''; doCond (1) $VAR1 = 1; doCond (0) $VAR1 = '';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Summing the odd/even digits of a larger number (for upc check digits)...a better way?
by ikegami (Patriarch) on Jun 23, 2006 at 01:01 UTC | |
|
Re^5: Summing the odd/even digits of a larger number (for upc check digits)...a better way?
by roboticus (Chancellor) on Jun 23, 2006 at 01:01 UTC |