in reply to using 'or' followed by ','
It's the comma operator. In this case, the comma expression is evaluated in a scalar context (dictated by the or), but still each argument is evaluated; that's the intent here (i.e. the ultimate return value of the expression is not used). A more straightforward alternative for that line would be
orif ( !DO_SOMETHING ) { warn("some warning"); next; }
unless ( DO_SOMETHING ) { warn("some warning"); next; }
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using 'or' followed by ','
by davidrw (Prior) on Jul 22, 2005 at 02:13 UTC |