The proper way to open()

Avleen Vig avleen at
Tue Jan 31 05:18:02 GMT 2012

On Mon, Jan 30, 2012 at 11:03 AM, James Laver <james.laver at> wrote:
> On 30 Jan 2012, at 16:56, Dominic Thoreau wrote:
>> open IN, '<', $cfg || handle_that_error_sub;
> No, explicitly not. The || operator is far too high precedence binding. Use 'or' to remove your bug.

This is the problem with TMTOWTDI.
There should just be one way to do it. Then we wouldn't have this problem.

More information about the mailing list