The proper way to open()

Roger Burton West roger at firedrake.org
Mon Jan 30 17:05:00 GMT 2012


On Mon, Jan 30, 2012 at 04:56:53PM +0000, Dominic Thoreau wrote:

>open IN, '<', $cfg || handle_that_error_sub;

OK, that's the same error I was making, so I'll point out that this will
not fail as desired, but

open (IN, '<', $cfg) || handle_that_error_sub;

will.

R


More information about the london.pm mailing list