The proper way to open()

James Laver james.laver at gmail.com
Mon Jan 30 17:03:47 GMT 2012


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.

/j




More information about the london.pm mailing list