This and other RFCs are available on the web at
  http://dev.perl.org/rfc/

=head1 TITLE

Compilation: Remove requirement for final true value in require-d and do-ed files

=head1 VERSION

  Maintainer: Damian Conway <[EMAIL PROTECTED]>
  Date: 7 Aug 2000
  Last Modified: 18 Sep 2000
  Mailing List: [EMAIL PROTECTED]
  Number: 55
  Version: 2
  Status: Frozen

=head1 ABSTRACT

This RFC proposes that files compiled via a C<require> or a C<do> no longer
be required to end in a true value.

=head1 DESCRIPTION

It is proposed that the final value in a file that is compiled using
C<require> or C<do> no longer be significant.

Instead it is proposed that files that wish to fail during compilation
should throw an exception. Furthermore, any valueless exception (i.e.
thrown with a simple C<die;>) that propagates through a C<require> or
C<do> should automatically take the appropriate message string:

        "require failed: file "%s" threw an exception"

        "do failed: file "%s" threw an exception"

Note that exceptions with some value would be passed through unchanged,
allowing a compiled file to signal exactly why it failed.

=head1 IMPLEMENTATION

Dammit, Jim, I'm a doctor, not an engineer!

=head1 REFERENCES

None.

Reply via email to