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
In reply to Re: using 'or' followed by ','
by tlm
in thread using 'or' followed by ','
by mathew_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |