http://www.perlmonks.org?node_id=408717


in reply to Re^4: The Limitations of the CPAN
in thread The Limitations of the CPAN

You incorrectly spotted what Ovid was bothered by in that open. It isn't the global filehandle reuse (though that is bad), it is not checking system calls. Lexical filehandles do not solve the problem.
I see three problems with open FOO, $bar;. That kind of code just doesn't belong in anything more than a one-file script, and maybe not even there (unless it's a single-use throwaway script). I don't think this is an issue with "enterprise-level" capability at all.

Replies are listed 'Best First'.
Re^6: The Limitations of the CPAN
by Ovid (Cardinal) on Nov 18, 2004 at 16:28 UTC

    I'm not trying to make the argument that this snippet is a particular problem for enterprise-level capability. I'm saying that certain problems get magnified when dealing with large-scale code.

    Cheers,
    Ovid

    New address of my CGI Course.