On Wed, Aug 16, 2000 at 12:42:24PM -0700, Peter Scott wrote:
> At 10:16 AM 8/16/00 -0400, Chaim Frenkel wrote:
> >One issue that haven't seen addressed, is how to _not_ have exceptions.
> >
> >I want to use a core module (non-core can do anything they want) but
> >I'd like to write it in procedural mode.
[ snip ]
> Short of setting some global switch, I don't see how else to do
> it. However, this doesn't address the issue of functions which return
> values anyway and signal errors through $!. If we get open() modified as I
> and others would like:
>
> my $fh = open $filename;
>
> how should we distinguish the one that throw()s from the one that doesn't?
<canned answer>
Use a pragma. "use exceptions"
</canned answer>
But, of course, that's equivalent to "setting a global switch" for
some definitions of "global".
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]