in reply to Re: How to return a two dimensional array from a function in Perl?
in thread How to return a two dimensional array from a function in Perl?
and and or are designed to be used to join statements. Use && and || inside of expressions.
Huh? What practical difference is there between this:
and this:if (($graph[$i][$j] == 0) and ($i != $j))
apart from the fact the former is more English-like? Isn't each condition around the conjunction a kind of statement? (What exactly is the difference between a "statement" and an "expression"? -- actually, I'm not sure I want to get into that...)if (($graph[$i][$j] == 0) && ($i != $j))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to return a two dimensional array from a function in Perl?
by ikegami (Patriarch) on Nov 03, 2008 at 04:44 UTC | |
by graff (Chancellor) on Nov 03, 2008 at 19:31 UTC | |
by ikegami (Patriarch) on Nov 03, 2008 at 21:43 UTC |