in reply to Re: Use of uninitialized value in addition
in thread Use of uninitialized value in addition
Actually using the comma operator is generally frowned on in both C/C++ and Perl. As your sample somewhat demonstrates it leads to fairly opaque code and can produce some very subtle bugs. A better technique is to put the several lines into a sub and call that in the while loop expression. See Re: Use of uninitialized value in addition for an example.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Use of uninitialized value in addition
by Marshall (Canon) on Mar 30, 2010 at 03:06 UTC | |
by GrandFather (Saint) on Mar 30, 2010 at 03:52 UTC | |
by Marshall (Canon) on Mar 30, 2010 at 08:17 UTC | |
by ikegami (Patriarch) on Mar 30, 2010 at 04:16 UTC | |
by Marshall (Canon) on Mar 30, 2010 at 09:28 UTC | |
by ikegami (Patriarch) on Mar 30, 2010 at 14:41 UTC |