RFC 105 (v1) Downgrade or remove "In string @ must be \@" error
[email protected] (Perl6 RFC Librarian)
| Newsgroups | perl.perl6.language,perl.perl6.announce |
|---|---|
| Message-ID | <[email protected]> |
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Downgrade or remove "In string @ must be \@" error =head1 VERSION Maintainer: Nathan Wiger <[email protected]> Date: 15 Aug 2000 Version: 1 Mailing List: [email protected] Number: 105 Status: Developing =head1 ABSTRACT Currently, if you write: $email = "[email protected]"; You get a B<fatal> error: In string, @wiger now must be written as \@wiger This should be a warning or removed altogether in Perl 6. =head1 DESCRIPTION This is something that was put in to catch Perl 4 to Perl 5 migration. Perl 6 shouldn't need it, and should just assume that "@wiger" is an array, even if it's unitialized. This is what it does for all the other data types. Either that, or catch all the unused occurrences of %, $, @, and so on. For example, neither of these creates a fatal error (or even a warning): $email = "nate$wiger.org"; $email = "nate%wiger.org"; =head1 IMPLEMENTATION Downgrade the error to a warning. Even better, remove the warning altogether. Perl 5's been out for years. =head1 REFERENCES http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/1998-07/msg02150.html