Be careful when you omit parens. You got lucky because of eval's prototype, but other functions aren't as forgiving.
eval $var1 || eval $var2;
means
eval($var1) || eval($var2);
For non-exceptional functions,
func $var1 || func $var2;
means
func($var1 || func($var2));
In reply to Re: When is 'eval' too inefficient?
by ikegami
in thread When is 'eval' too inefficient?
by argv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |