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

=head1 TITLE

Require explicit m on matches, even with ?? and // as delimiters.

=head1 VERSION

  Maintainer: Nathan Torkington <[EMAIL PROTECTED]>
  Date: August 20, 2000
  Last Modified: August 24, 2000
  Version: 2
  Mailing List: [EMAIL PROTECTED]
  Number: 135

=head1 ABSTRACT

C<?...?> and C</.../> are what makes Perl hard to tokenize.  Requiring
them to be written C<m?...?> and C<m/.../> would solve this.

=head1 CHANGES

Version 2 of this RFC redirects discussion of this topic to 
[EMAIL PROTECTED]

=head1 DESCRIPTION

Damian Conway's Text::Balanced module does a pretty good job of
tokenizing Perl code.  However, bare C</.../> and C<?...?> require
semantic analyis to distinguish them from division and the hook
(C<A?B:C>) operator.

To remove this hassle, and thus permit programs that analyze the
source-code of other programs, I propose requiring that all matches
require an explicit C<m>.

=head1 IMPLEMENTATION

Remove the bare C</.../> and C<?...?> from the grammar :-)  When
converting perl5 programs to perl6, put the C<m> in.

=head1 REFERENCES

perl6-language message
C<[EMAIL PROTECTED]> by Damian Conway

Reply via email to